HTMLThe onstalled attribute specifies code to run for the stalled event, when the browser is trying to fetch media data but data is not arriving. This concerns downloading, not necessarily an interruption of playback.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe onstorage attribute on body sets the Window handler for the storage event. It reacts to changes to shared localStorage or sessionStorage made in another document, rather than in the document performing the write.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe onsubmit attribute specifies JavaScript that handles the submit event. It lets you react to a form submission attempt and cancel the default submission; it does not confirm that data reached the server.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe onsuspend attribute specifies JavaScript to run for the suspend event. For audio and video, this event means the browser is intentionally not fetching data at present, not that playback has been paused.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe ontimeupdate attribute contains JavaScript that handles the timeupdate event, used when an audio or video playback position is updated. It can refresh a time indicator but does not provide precise timing.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe ontoggle attribute contains JavaScript that handles the toggle event after an element's open state changes. Relevant elements include details, dialog, and elements acting as popovers. The attribute does not itself open or close an element.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe onunhandledrejection attribute on body registers a handler for the Window object's unhandledrejection event. It exposes the rejection reason of a promise that still lacks rejection handling when notification occurs.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe body element's onunload attribute sets a handler for the Window object's unload event, not an event handler targeting the element itself. It is neither a reliable place to save data nor a way to prevent leaving a page.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe onvolumechange attribute contains JavaScript that handles a media element's volumechange event. It responds to changes in volume or muted, not just to movement of a volume slider.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe onwaiting attribute specifies code to run for the waiting event. On audio and video elements, this event signals that playback cannot continue because sufficient data is unavailable. The attribute itself does not start downloading or playback.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe global HTML attribute onwheel specifies code handling the wheel event. It is not a boolean attribute: its value contains JavaScript statements.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe boolean open attribute controls whether details is expanded or dialog is open. Its presence matters, not its text value; open alone does not create a modal dialog.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe optimum attribute on meter identifies a preferred value and, together with low and high, determines the optimal region.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe `pattern` attribute defines a regular expression that must match the entire nonempty input value. For an `email` input with `multiple`, each address must match separately. Use `required` to make the field mandatory.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe ping attribute on a and area elements lists URLs to notify when a hyperlink is followed. It does not change the href destination, and the browser may suppress notifications.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe placeholder attribute supplies a short hint for an empty input or textarea. It does not set the control's value and must not replace its label.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe boolean playsinline attribute hints that a browser should play video within the element's playback area rather than fullscreen or in a separate window. It is a hint, not a guarantee; omitting it does not force fullscreen.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe global `popover` attribute creates an initially hidden panel displayed above page content. Its `auto`, `manual`, and `hint` values determine how the panel closes.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe popovertarget attribute connects a button to a popover element through its id. It enables showing and hiding that element without JavaScript.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe popovertargetaction attribute determines whether a button shows, hides, or toggles the popover identified by popovertarget. A missing attribute or invalid value means toggle.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe poster attribute on video specifies a preview image that the browser can display before video playback.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe preload attribute on audio and video tells the browser how much media data may be worth fetching ahead of time. Its none, metadata, and auto values are hints, not guarantees.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe readonly boolean attribute prevents user editing in supported input controls and textarea, but does not prevent JavaScript changes or itself exclude values from form submission. For form-associated custom elements, its built-in behavior is narrower.
Basic · WHATWG HTML Living Standard; index snapshot date recorded separatelyHTMLThe referrerpolicy attribute specifies how much information about the referring page’s address a browser may send in the Referer header during navigation or resource fetching. It applies to a particular element; it is neither a global attribute nor a CORS setting.
Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separately