Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

Knowledge base — HTML

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

Entries: 397

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
HTML

menu — command list

The `menu` element represents an unordered list of user commands: a semantic toolbar. Individual commands belong in `li` elements.

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

meta — HTML document metadata

The meta element records metadata such as a page description and an encoding declaration. It can also specify pragma directives or microdata properties. Its meaning depends on the selected attribute.

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

meter — measurement within a known range

The `meter` element represents a numeric value within a known range, such as disk usage. It is not intended to display task progress.

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

nav — navigation section

The nav element identifies a major navigation block linking to other pages or locations within the current page.

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

noscript — fallback content without scripting

The `noscript` element provides fallback content when scripting is disabled. It does not detect JavaScript errors or failures to load a script.

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

object — embedding a resource with fallback content

The `object` element embeds an external resource as an image or a nested document. Its children provide fallback content displayed when the resource cannot be shown.

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

ol — ordered list

The ol element represents a list whose item order affects its meaning. Use li for the items and start, reversed, and type to control numbering.

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

optgroup — grouping options in select

The `optgroup` element combines `option` elements inside `select` into a named group. It organizes a list and lets you disable an entire group.

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

option — an HTML choice

The option element defines a choice in select or a suggestion in datalist. It separates the label from the value and supports default selection and disabled choices.

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

output — a calculation or user-action result

The `output` element represents the result of an application calculation or a user action. Its `for` attribute identifies elements that influence the result, but does not perform calculations.

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

The p element — paragraph

The p element represents an HTML paragraph. It contains phrasing content, not arbitrary structural elements; its appearance does not define its meaning.

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

picture — conditional image selection

The `picture` element supplies an `img` element with alternative image sources based on display conditions or format support. It also enables different crops, rather than merely different resolutions.

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

pre — preformatted text

The `pre` element represents a text block whose layout carries meaning. Default rendering preserves spaces and line breaks, but its contents are still parsed as HTML.

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

progress — task completion progress

The `progress` element represents task completion: determinate through `value` and `max`, or indeterminate when `value` is absent. It is not intended for ordinary measurements.

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

q — inline quotation

The q element marks text quoted from another source, including a fictional one. The browser supplies quotation marks, while the optional cite attribute identifies the source URL without replacing a visible link.

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

rp — fallback parentheses for ruby annotations

The `rp` element supplies parentheses or other separators around ruby annotations for browsers without ruby support.

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