!

H1 – Main Page Title of the Demo

Headings h1–h6

H1

H2

H3

H4

H5
H6

hgroup: grouped heading

Subtitle inside hgroup

Text and semantics

p – a regular paragraph of text. A line break via br here.
New line.


strong | em | b (bold) | i (italic) | u (underline) | s (strikethrough) | del (deleted) | ins (inserted) | small | mark (highlight)

H2O (sub) and x2 (sup) | HTML (abbr) | dfn – definition | cite – title of a work

q – short inline quotation | (time) | data – value 123

blockquote – a longer block quotation.
pre – preformatted text
preserves    whitespace
and indentation

code – code snippet | Ctrl+C (kbd) | samp – program output | var – variable

ruby: 漢kan字ji (characters with rt annotation and rp: 漢(kan))

bdo: Right-to-left text | bdi: العربية (direction isolation)

long word with optional break: supercalifragilisticexpialidocious

address – contact information:
John Smith, 1 Test Street, 00-001 Warsaw

Text color: font (obsolete, shown intentionally).

Lists

ul – bulleted list:

ol – numbered list (start=5, reversed, type=A):

  1. item with forced value 3
  2. item
  3. item

dl – description list:

HTML
markup language
CSS
style sheets

Tables

caption – table title
th 1 th 2 th 3
td td with colspan=2
td rowspan=2 td td
td td
tfoot – table footer

Media and embedded content

img – image
figcaption – image caption
picture + source

| with (track)

(embed) | object – fallback

area img with map svg canvas – fallback

Forms – all input types

legend – basic input fields

input type=file (accept, multiple):

input type=hidden:

Selection (checkbox / radio)

checkbox:

radio:

fieldset disabled (whole group inactive)
Other form elements


datalist + input list:

progress: 70% | meter: 60%

output: output – result of a calculation

Buttons

Interactive elements

summary – click to expand details

Hidden content inside details. details open – expanded by default:

Expanded right away

Visible content.

dialog open – dialog box (can also be shown via .showModal() JS)

Other tags

template – invisible template:

slot (Web Components): slot fallback

div – generic block | span – generic inline