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.
CKTIS / HTML
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
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.
The start attribute on ol sets the initial numbering value of an ordered list. Its value must be an integer.
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.
The `style` attribute contains a CSS declaration list applied directly to one element and exposed to scripts through `CSSStyleDeclaration`.
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.
The `tabindex` attribute controls focusability and participation in sequential keyboard navigation.
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.
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.
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`.
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.
The usemap attribute on img references a client-side image map. Its area elements define which parts of the image link to particular destinations.
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.
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.
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.
The writingsuggestions attribute controls whether a browser should offer writing suggestions. Its setting can be inherited; user preferences take precedence.
HTML accessibility combines semantics, naming, state, and keyboard operation so content and controls work across different modes of perception and interaction.
HTML processing architecture runs from bytes and encoding through the parser and DOM to scripts, styles, and presentation of the current document.
HTML boolean attributes represent true by presence and false only by absence; text that resembles a boolean value does not change that rule.
Character references let markup spell a character by name or code point, but the result depends on conforming syntax and the HTML tokenizer state.
Content categories classify HTML elements, while the parent content model and element-specific restrictions decide whether a particular nesting is conforming.
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.
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.
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.
HTML forms connect controls to an owner, validate constraints, and construct an ordered data set for submission; those three stages have distinct rules.