1. Text-based elements
Headings, paragraphs, inline emphasis, edits, code, quotations, and text variations.
Paragraph and inline text
This is a semantic paragraph strong emphasis, underline, small text,
highlighted text that is really long and wraps, struck-through text, inserted text and deleted text.
This is css strong emphasis, underline, small text, highlighted text that is really long and wraps, struck-through text.
Chemical formula: H2O. Mathematical notation: x2 + y2. Abbreviation: HTML.
Example of cited work, defined term, and inline quoted text
.
Code and technical text
Use <section> for thematic grouping.
Press Ctrl + S to save.
Program output can use Build completed successfully.
Variable example: userName.
<button type="button">
Click
</button>
<input type="text" placeholder="Name" />
Block quotation and line breaks
HTML provides structure, semantics, and built-in interactive controls without requiring JavaScript for basic capability.
This paragraph includes a manual line break.
The next line appears below because of the <br> element.
The horizontal rule above is rendered with the <hr> element.
Default Browser Font Families
sans-serif
strong
italic
strong-italic
SPACING
serif
strong
italic
strong-italic
SPACING
monospace
strong
italic
strong-italic
SPACING
cursive
strong
italic
strong-italic
SPACING
fantasy
strong
italic
strong-italic
SPACING
system-ui
strong
italic
strong-italic
SPACING
2. List elements
Unordered, ordered, nested, description, and task-style lists.
Unordered list
- UL Standard
- LI Offset
- LI Rotate
- Color
- Square
- Marker
- Circle
- Markers
Unordered list 3D
- Ul Standard
- LI Offset
- LI Rotate
- Color
- Square
- Marker
- Circle
- Markers
Ordered list
- Remember the sun
- Before you awake
- Remember all the reasons
- And bake it into your cake
Nested lists
-
Text elements
- Paragraphs
- Inline semantics
-
Structure
- Section
- Article
- Aside
Description list
- HTML
- The markup language used to structure web content.
- CSS
- The language used for presentation and styling.
- JS
- The language used to add behavior and interactivity.
3. Grouping and content containers
Examples of article, aside, div, figure, details, and content grouping patterns.
<article> example
Reusable content unit
An <article> can represent a blog post, forum entry, news item, or self-contained card.
<figure> and <figcaption>
<details> and <summary>
Open disclosure widget
The <details> element provides built-in expandable content, while
<summary> defines the visible heading.
4. Semantic layout elements
Header, nav, main, section, article, aside, footer, and address.
Sample semantic document fragment
This nested example demonstrates common page regions.
Section
A section groups related content under a shared theme or heading.
Article
An article can stand on its own outside the page context.
5. Interactive and state-related elements
Buttons, progress, meter, dialog-like note, and time/status examples.
Buttons
Time and status
Published on .
Status: Online, Pending, Offline
Progress
The progress element represents task advancement.
Meter
The meter element represents a scalar measurement within a range.
6. Media-related elements
Image, picture, audio, video, and source track structures.
Image
<img> with alt text. SVG src
Picture element
The <picture> element can swap image sources by media conditions.
SVG
<SVG> examples
<SVG> depth and lit
<SVG> variable depth, lit
Audio
Audio controls are shown.
Video
Video supports muted autoplay, loop, posters, mobile playsinline
7. Table and data elements
Table, caption, thead, tbody, tfoot, colgroup, and data-oriented inline tags.
| Element | Category | Example capability |
|---|---|---|
| <input> | Form | Text, email, date, range, color, file, and many other built-in control types. |
| <details> | Interactive | Native collapsible disclosure without JavaScript. |
| <picture> | Media | Responsive image source selection using media queries. |
| This table demonstrates multiple table sub-elements working together. | ||
A machine-readable value can be wrapped with <data>:
Product SKU 1007.
A bidirectional isolation example with مرحبا inside mixed-direction text.
8. Form elements
A broad demo of native HTML form controls and attribute variations.
9. Embedded and miscellaneous elements
Examples of iframe, object, and inline helpers that broaden HTML capability.
IFrame
Object
Other useful tags
Span is an inline generic container. 漢 字 can provide pronunciation support in languages that use ruby annotations.
Use this text is forced right-to-left with the <bdo> element.
You can also create anchor targets such as Back to top.