<article>
Self-contained content, such as a blog post.
<section>
A thematic grouping inside the article.
This reference shows the default styles of the browser for HTML elements.
This is a standard paragraph.
You can use a <br> to force a line break
right here without creating a new
paragraph.
The thematic break (horizontal rule) is above.
Someone famous once said:
"Design is not just what it looks like and feels like. Design is how it works."
Also, short inline quotes
are supported.
Reference: Steve Jobs
Unordered List:
Ordered List:
Description List:
Menu (toolbar-style list):
Inline code: npm install
A preformatted block keeps every space and line break:
function greet(name) {
return "Hello, " + name;
}
Program output: Done in 1.2s
Strong importance text.
Emphasized text reading.
Visually highlighted (marked) text.
Deleted text and inserted text.
Small side-comment text.
Math equation: E = mc2 (superscript).
Chemical: H2O (subscript).
Press Cmd + S to save.
Hyperlink to another resource.
HTML abbreviation.
The <code> tag formats inline code.
The solver returns Exit code 0 (sample output).
Where x is the unknown variable.
Published .
A CSS definition term.
Bring $40 $29. Strikethrough marks no-longer-accurate text.
The bus leaves at 09:45 from Platform 3.
A spelling mistake is underlined (non-semantic underline).
Written by Grovider AgencyBidirectional override: this text is reversed
Isolated bidi text: User إيان scored 3 points.
Line-break opportunity hint: super
Machine-readable value: Cherry Tomatoes
Ruby annotation: 漢字
Generic inline container: <span> has no default styling.
The page's primary content lives in one <main> per page. A typical structure:
Introductory content and grouped headings.
Self-contained content, such as a blog post.
A thematic grouping inside the article.
Hidden content revealed by toggling the summary.
An open native <dialog>:
Scripted <canvas> bitmap:
Vector <svg>:
<iframe> embeds another web page:
<picture> serves responsive image sources:
<object> and <embed> embed external resources (with fallback):
| Group | Item | Price |
|---|---|---|
| Fruit | 6 apples | $1.20 |
| 4 bananas | $0.80 | |
| Total | $2.00 (10 items) | |
This is hidden content toggled by clicking the summary.
Audio player (<audio> with <source> fallbacks):
Image with caption (<figure> + <figcaption>):
<img> wrapped in a <figure>.Video player (<video> with a poster & captions <track>):
Some elements render nothing on their own. They belong in the document head or exist for scripting:
<head>, <title>, <base>, <link>, <meta>, <style> for document metadata<script>, <noscript> for scripting and its no-JS fallback<template> for inert markup, cloned by JavaScriptThis paragraph lives inside a <template> and is never rendered directly.
The <template> above outputs nothing until it is cloned with JavaScript.