Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 5788

HTML

h1 — level-one heading

The h1 element represents a heading for a top-level section. Choose heading levels to match the content structure.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

h2 — second-level heading

The h2 element marks a subsection heading, typically below the main h1 heading. It expresses content structure rather than merely changing text appearance.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

h3 — third-level heading

The h3 element marks a third-level heading, typically naming a subdivision beneath an h2 heading.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

h4 — fourth-level heading

The `h4` element marks a fourth-level heading. Choose it according to content hierarchy, not text size.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

h5 — fifth-level heading

The h5 element represents a heading with a base level of 5. Use it to label a deeply nested part of a document, not to select a text size.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

h6 — sixth-level heading

The h6 element represents a heading with a base level of 6, not simply small text. Use it for deeply nested subsections, following the document's heading hierarchy.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

head — HTML document metadata

The `head` element groups document metadata, such as the title and character encoding declaration. It is the first element child of `html`, before `body`.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

header — introductory and navigational content

The `header` element groups introductory content or navigational aids for a page or part of it. It can contain a heading, but does not itself create a new section.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

hgroup — a heading with related content

The hgroup element combines one h1–h6 heading with related content, such as a subtitle or tagline marked up as p. It is not a container for multiple headings.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

hr — thematic break

The `hr` element marks a paragraph-level thematic break, such as a scene change, rather than merely a decorative line.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

html — the document root element

The `html` element is the root of an HTML document. It contains `head` followed by `body`; its `lang` attribute identifies the document language.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

i — text of a different quality

The `i` element marks text in an alternate voice or quality relative to surrounding prose, rather than merely requesting italics.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

iframe — embedded document

The iframe element embeds a separate document. Learn how src differs from srcdoc and how sandbox restricts content.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

img — embedding an image

The img element embeds an image in an HTML document. The src and srcset attributes identify resources, while alt supplies text that replaces the information conveyed by the image.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

input — form control

The `input` element represents a data field or button depending on `type`. Learn how to choose its type, provide a label and submission name, and apply basic value constraints.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

ins — content added to a document

The ins element marks content added to a document. Optional datetime and cite attributes record the change date and a URL explaining it.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

kbd — user input

The `kbd` element represents user input, usually keyboard input but also, for example, voice commands. Nesting can identify individual keys.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

label — a control caption

The `label` element gives a control a caption. Associate it using `for` and `id`, or place the control inside the label.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

legend — group caption

The `legend` element captions a group in `fieldset` or labels an option group in `optgroup`. It must be the first element child; it does not replace labels for individual controls.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

li — list item

The `li` element represents an item in an `ol`, `ul`, or `menu` list. Its `value` attribute can change an item's number in an ordered list.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

The link element — document resource relationships

The `link` element describes a relationship between an HTML document and another resource, such as a CSS stylesheet. `rel` identifies the relationship, and `href` usually supplies the address. It does not create a visible clickable link.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

main — the document’s dominant content

The `main` element identifies a document’s dominant content. A document may contain at most one `main` without the `hidden` attribute.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

map — linked regions on an image

The `map` element works with `img` and descendant `area` elements to create an image map: geometric regions can link to different destinations.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

mark — contextual highlighting

The mark element identifies contextually relevant text, such as a search match or a passage being discussed in a quotation.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately