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

srcset — image candidate list

The `srcset` attribute supplies alternative image resources to the browser. The `x` descriptors describe pixel density, while `w` descriptors describe resource widths used together with `sizes` for image selection.

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

start — initial list numbering value

The start attribute on ol sets the initial numbering value of an ordered list. Its value must be an integer.

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

step — allowed-value increments for input

The step attribute sets the spacing between allowed numeric or date/time values in an input. Steps are measured from a base; any removes this constraint without removing other validity rules.

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

HTML term or value: style

The `style` attribute contains a CSS declaration list applied directly to one element and exposed to scripts through `CSSStyleDeclaration`.

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

switch — a switch control for input

In browsers that support it, the boolean switch attribute turns an input of type checkbox into a two-state switch. Its on/off state is still determined by checked.

Basic · Nonstandard browser extension; not defined by the WHATWG HTML Living Standard.
HTML

HTML term or value: tabindex

The `tabindex` attribute controls focusability and participation in sequential keyboard navigation.

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

target — navigation destination

The `target` attribute selects where a destination document opens: in the current context, a new tab or window, or a named frame. It applies to hyperlinks and forms; the `base` element can establish a document-wide default target.

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

HTML term or value: title

The `title` attribute supplies advisory text associated with an element; a browser may show it as a tooltip, but exposure and interaction depend on the device.

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

HTML term or value: translate

The `translate` attribute specifies whether an element’s text and translatable attribute values are to be changed during localization; its normative states are `yes` and `no`.

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

type — element-dependent meaning in HTML

The type attribute is not a global attribute. Depending on the element, it selects a control kind, button behavior, list numbering, or script processing mode, or describes a resource's MIME type. Valid values and defaults depend on the element.

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

usemap — associate an image with an image map

The usemap attribute on img references a client-side image map. Its area elements define which parts of the image link to particular destinations.

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

The HTML value attribute

The value attribute has element-specific meanings: a control value, submitted form data, a measurement, progress, a list item's number, or a machine-readable representation. It is not a global attribute.

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

HTML width attribute

The width attribute specifies the width of supported HTML elements. It takes a non-negative integer without a unit. On canvas, it controls the bitmap width, not merely the display size set by CSS.

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

wrap — textarea wrapping for submission

The textarea wrap attribute determines whether the browser adds line breaks to the value submitted with a form. It distinguishes visible line wrapping from actual newline characters.

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

writingsuggestions — suggestions while typing

The writingsuggestions attribute controls whether a browser should offer writing suggestions. Its setting can be inherited; user preferences take precedence.

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

HTML concept: accessibility

HTML accessibility combines semantics, naming, state, and keyboard operation so content and controls work across different modes of perception and interaction.

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

HTML concept: architecture

HTML processing architecture runs from bytes and encoding through the parser and DOM to scripts, styles, and presentation of the current document.

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

HTML concept: boolean-attributes

HTML boolean attributes represent true by presence and false only by absence; text that resembles a boolean value does not change that rule.

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

HTML concept: character-references

Character references let markup spell a character by name or code point, but the result depends on conforming syntax and the HTML tokenizer state.

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

HTML concept: content-categories

Content categories classify HTML elements, while the parent content model and element-specific restrictions decide whether a particular nesting is conforming.

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

HTML concept: doctype

The `<!doctype html>` declaration is the required HTML document preamble and selects modern rendering behavior; it is neither an element nor a language version number.

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

HTML concept: document-outline

A document outline is the ordered heading structure used for navigation and tables of contents; it is not an automatically generated section tree exposed through a dedicated DOM API.

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

HTML concept: dom-versus-source

HTML source is the parser’s input sequence, whereas the DOM is the current mutable object model; after parsing, the two representations need not be identical.

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

HTML concept: forms

HTML forms connect controls to an owner, validate constraints, and construct an ordered data set for submission; those three stages have distinct rules.

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