ElementAttribute
API reference › HTML Attribute › Values › ElementAttribute
Represents element-specific attribute names.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Element.
| Case | Value | Description |
|---|---|---|
ALT | 'alt' | alt — Alternative text in case an image can’t be displayed. |
AS | 'as' | as — Specifies the type of content being loaded by the link element. |
AUTOPLAY | 'autoplay' | autoplay — Indicates that media should begin playback automatically when it can. |
BLOCKING | 'blocking' | blocking — Indicates that certain operations should be blocked on the fetching of an external resource. |
CHARSET | 'charset' | charset — Declares the document’s character encoding. |
CLOSEDBY | 'closedby' | closedby — Specifies which user actions can close a <dialog> element. |
CONTROLS | 'controls' | controls — Indicates that browser playback controls should be displayed for media. |
CONTROLSLIST | 'controlslist' | controlslist — Hints which built-in controls should be shown for media elements. |
DECODING | 'decoding' | decoding — Provides a hint to the browser for image decoding behavior. |
DEFAULT | 'default' | default — Indicates the default track to enable for media playback. |
DISABLEREMOTEPLAYBACK | 'disableremoteplayback' | disableremoteplayback — Disables remote playback controls and capability for media. |
DOWNLOAD | 'download' | download — Indicates that the hyperlink is to be used for downloading a resource. |
HEIGHT | 'height' | height — Specifies the height of certain elements. |
HREF | 'href' | href — The URL of a linked resource. |
HREFLANG | 'hreflang' | hreflang — Indicates the language of the linked resource. |
HTTP_EQUIV | 'http-equiv' | http-equiv — Defines a pragma directive for processing the document. |
IMAGESIZES | 'imagesizes' | imagesizes — Specifies the image sizes for preload. |
IMAGESRCSET | 'imagesrcset' | imagesrcset — Specifies the image srcset for preload. |
KIND | 'kind' | kind — Indicates how a text track should be used. |
LABEL | 'label' | label — Text used as a label for an option or option group. |
LIST | 'list' | list — Identifies a <datalist> element that provides predefined options to suggest to the user. |
LOADING | 'loading' | loading — Indicates how the browser should load the image. |
LOOP | 'loop' | loop — Indicates that media should restart automatically after reaching the end. |
MUTED | 'muted' | muted — Indicates that media output is initially silenced. |
NAME | 'name' | name — Specifies the metadata name for the meta element. |
OPEN | 'open' | open — Indicates whether the contents of the details element are visible. |
PING | 'ping' | ping — A space-separated list of URLs to which the browser will send POST requests when the link is followed. |
POPOVERTARGET | 'popovertarget' | popovertarget — Identifies the popover element that is associated with the current element. |
POPOVERTARGETACTION | 'popovertargetaction' | popovertargetaction — Defines the action to be performed on the popover element when the current element is activated. |
PRELOAD | 'preload' | preload — Provides a hint about preloading behavior for media resources. |
SELECTED | 'selected' | selected — Indicates whether an option is initially selected. |
SIZES | 'sizes' | sizes — Defines the sizes of icons for visual media. |
SRCLANG | 'srclang' | srclang — Language of text track data. |
SRCSET | 'srcset' | srcset — Defines a set of images for the browser to choose from. |
USEMAP | 'usemap' | usemap — Associates the image with a <map> element. |
VALUE | 'value' | value — Indicates the current ordinal value of the list item. |
WIDTH | 'width' | width — Specifies the width of certain elements. |