controls: request browser-provided controls
Provide usable media controls without promising identical controls on every device.
CKTIS / HTML
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Provide usable media controls without promising identical controls on every device.
The controlslist attribute tells the browser which options to omit from native audio and video controls. Its JavaScript counterpart, HTMLMediaElement.controlsList, exposes a token list. Support depends on the browser.
Match coordinate lists to the chosen shape and the displayed image.
Coordinate the browser request with permission from the resource server.
Distinguish an embedded-resource URL from custom application data.
Store string state in markup without treating it as trusted or secret.
Separate a readable label from a precise date, time or modification timestamp.
Separate decoding readiness from downloading, lazy loading and paint timing.
Suggest an initial track while respecting the user’s track preferences.
Preserve document order without blocking HTML parsing during the download.
The `dir` attribute sets semantic base direction for text so the bidirectional algorithm can order characters, numbers, and punctuation correctly.
Send a companion direction field without changing the text’s own field name.
Distinguish disabled controls from read-only fields and security permissions.
Suggest a filename without assuming authority over browser download policy.
The `draggable` attribute controls whether an element can initiate native dragging, but it does not by itself implement data transfer or an accessible keyboard interaction.
Use multipart encoding for files and let the browser create its boundary.
Describe the intended action without implementing it through the label.
The fetchpriority attribute sets the relative fetch priority of images, external scripts, and resources referenced by link. It accepts high, low, or auto; it does not guarantee the order in which fetches finish.
The `for` attribute has element-specific meanings: it associates a `label` with a control, identifies inputs to an `output`, or connects a `template` to a named processing-instruction marker. It is neither a global attribute nor an instruction to perform a calculation.
The form attribute identifies a control's form owner, even when the control is outside that form. Its value is the form's id in the same tree, not its name or a CSS selector.
The formaction attribute overrides a form's action when a particular button initiates submission. It lets the same form submit to different URLs without changing the form's default destination.
The formenctype attribute lets a submit button override the form's enctype. It selects the POST request data format only when that button is used to submit the form.
The formmethod attribute selects the form submission method for a particular submit button. It accepts get, post, and dialog, overriding the form's method for a submission initiated by that button.
The boolean `formnovalidate` attribute lets a submit button bypass automatic form constraint validation. It is useful for saving an incomplete draft without changing the fields' requirements.