HTMLThe boolean selected attribute specifies an option element's default selection. It is not a reliable reading of the current choice: in JavaScript, selected describes the current state, while defaultSelected reflects the attribute.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe boolean shadowrootclonable attribute on a template element marks a declarative shadow root as clonable. Copying the host element can then include its shadow tree as well.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLA boolean attribute on template that leaves a declarative shadow root without a custom element registry. It allows a registry to be assigned later through initialize(), rather than automatically using the document's registry.
Advanced · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe boolean shadowrootdelegatesfocus attribute on template enables focus delegation for a declaratively created shadow root. It allows focus to move from the host to a suitable internal element; it neither creates a shadow root by itself nor automatically focuses anything.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe shadowrootmode attribute on template lets the HTML parser create a declarative shadow root. Its open and closed values determine the access mode of that root.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe boolean shadowrootserializable attribute marks a declarative shadow root for serialization through getHTML({ serializableShadowRoots: true }). It does not automatically include that root in ordinary getHTML() output or the host's innerHTML.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe shadowrootslotassignment attribute on template selects how nodes are assigned to slots in a declarative shadow root: automatic named assignment or explicit manual assignment.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe shape attribute on area selects the geometry of an image-map region. The rect, circle, and poly values require coords; default covers the entire image.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe size attribute specifies the visible width of a text input in characters or the number of visible select options. It neither limits the value length nor enables multiple selection.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe sizes attribute has two distinct meanings: on img and source it describes the image width used to select a resource from srcset; on link it declares available icon dimensions. It does not replace CSS rules that determine the displayed image size.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe global slot attribute selects a named slot in Shadow DOM where an element is presented. Its value corresponds to the slot element's name value; the attribute and the element have different roles.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe span attribute specifies how many columns a col or colgroup represents. It accepts integers from 1 through 1000 and does not merge table cells.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe `spellcheck` attribute gives the browser a hint about whether editable text should receive spelling and grammar checking.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe `src` attribute specifies the URL of a resource used by an HTML element, such as an image, script, or recording. It is not a global attribute: its applicability, requirement, and loading behavior depend on the element.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe srcdoc attribute supplies an iframe document's HTML without a separate file and takes precedence over src.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe srclang attribute on track identifies the language of text track data using a BCP 47 language tag. It is required for subtitles, including when kind is omitted.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe `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 separatelyHTMLThe 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 separatelyHTMLThe 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 separatelyHTMLThe `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 separatelyHTMLIn 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.HTMLThe `tabindex` attribute controls focusability and participation in sequential keyboard navigation.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe `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 separatelyHTMLThe `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