kbd — user input
The `kbd` element represents user input, usually keyboard input but also, for example, voice commands. Nesting can identify individual keys.
CKTIS / HTML
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The `kbd` element represents user input, usually keyboard input but also, for example, voice commands. Nesting can identify individual keys.
The `label` element gives a control a caption. Associate it using `for` and `id`, or place the control inside the label.
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.
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.
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.
The `main` element identifies a document’s dominant content. A document may contain at most one `main` without the `hidden` attribute.
The `map` element works with `img` and descendant `area` elements to create an image map: geometric regions can link to different destinations.
The mark element identifies contextually relevant text, such as a search match or a passage being discussed in a quotation.
The `menu` element represents an unordered list of user commands: a semantic toolbar. Individual commands belong in `li` elements.
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.
The `meter` element represents a numeric value within a known range, such as disk usage. It is not intended to display task progress.
The nav element identifies a major navigation block linking to other pages or locations within the current page.
The `noscript` element provides fallback content when scripting is disabled. It does not detect JavaScript errors or failures to load a script.
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.
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.
The `optgroup` element combines `option` elements inside `select` into a named group. It organizes a list and lets you disable an entire group.
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.
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.
The p element represents an HTML paragraph. It contains phrasing content, not arbitrary structural elements; its appearance does not define its meaning.
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.
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.
The `progress` element represents task completion: determinate through `value` and `max`, or indeterminate when `value` is absent. It is not intended for ordinary measurements.
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.
The `rp` element supplies parentheses or other separators around ruby annotations for browsers without ruby support.