HTML Elements Visualizer
A visual guide to HTML elements - see how each element looks and works
<html>
Basic StructureThe root element of an HTML page
Code Example:
Result:
<head>
Basic StructureContains meta information about the document
Code Example:
Result:
<body>
Basic StructureContains all the visible content of the document
Code Example:
Result:
<h1>
Text ContentThe most important heading (largest)
Code Example:
Result:
Main Heading
<h2>
Text ContentSecond-level heading
Code Example:
Result:
Subheading
<p>
Text ContentA paragraph of text
Code Example:
Result:
This is a paragraph of text. Paragraphs are block-level elements that create a new line before and after.
<a>
Text ContentA hyperlink to another page or location
Code Example:
Result:
<strong>
Text ContentImportant text (bold)
Code Example:
Result:
<em>
Text ContentEmphasized text (italic)
Code Example:
Result:
<ul>
Text ContentUnordered list (bullet points)
Code Example:
Result:
- Item 1
- Item 2
- Item 3
<ol>
Text ContentOrdered list (numbered)
Code Example:
Result:
- First item
- Second item
- Third item
<img>
MediaAn image
Code Example:
Result:
<video>
MediaA video player
Code Example:
Result:
<audio>
MediaAn audio player
Code Example:
Result:
<form>
FormsA container for form elements
Code Example:
Result:
<input>
FormsAn input field (many types available)
Code Example:
Result:
<button>
FormsA clickable button
Code Example:
Result:
<select>
FormsA dropdown selection menu
Code Example:
Result:
<table>
TablesA table for displaying data in rows and columns
Code Example:
Result:
Name | Age |
---|---|
John | 25 |
Jane | 30 |
<header>
Semantic ElementsThe header section of a page or section
Code Example:
<nav>
Semantic ElementsA navigation menu
Code Example:
Result:
<main>
Semantic ElementsThe main content area of a page
Code Example:
Result:
Main Content
This is the main content of the page.
<footer>
Semantic ElementsThe footer section of a page or section