Skip to content
PHP Ecosystem
Explore

AttributeProperty

API reference › HTML Mixin › Values › AttributeProperty

enumUIAwesome\Html\Mixin\Values\AttributeProperty
Backed bystring
Sourcesrc/Values/AttributeProperty.php

Defines HTML attribute names.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes.

CaseValueDescription
ACCEPT'accept'accept — List of types the server accepts, typically a file type.
ACCEPT_CHARSET'accept-charset'accept-charset — The character encoding for form submission (historical use; usually “UTF-8”).
ACCESSKEY'accesskey'accesskey — Keyboard shortcut to activate or add focus to the element.
ACTION'action'action — The URI of a program that processes the information submitted via the form.
ALIGN'align'align — (Deprecated) Specifies the horizontal alignment of the element.
ALLOW'allow'allow — Specifies a feature policy for an iframe.
ALT'alt'alt — Alternative text in case an image can’t be displayed.
ASYNC'async'async — Execute the script asynchronously.
AUTOCAPITALIZE'autocapitalize'autocapitalize — Controls whether and how text input is automatically capitalized.
AUTOCOMPLETE'autocomplete'autocomplete — Indicates whether controls can have their values automatically completed.
AUTOFOCUS'autofocus'autofocus — A hint that the element should be focused on page load.
AUTOPLAY'autoplay'autoplay — The audio or video should play as soon as possible.
BACKGROUND'background'background — (Legacy) Specifies the URL of a background image.
BGCOLOR'bgcolor'bgcolor — (Legacy) Background color of the element.
BORDER'border'border — (Legacy) The border width.
CAPTURE'capture'capture — Media capture hint for file inputs.
CHARSET'charset'charset — Declares the character encoding of the page or script.
CHECKED'checked'checked — Indicates whether the element should be checked on page load.
CITE'cite'cite — Contains a URI which points to the source of a quote or change.
COLOR'color'color — (Legacy) Sets the text color.
COLS'cols'cols — Number of columns for a textarea.
COLSPAN'colspan'colspan — Number of columns a table cell should span.
CONTENT'content'content — A value associated with a meta element.
CONTENTEDITABLE'contenteditable'contenteditable — Indicates whether the element’s content is editable.
CONTROLS'controls'controls — Indicates whether media controls should be shown.
COORDS'coords'coords — Coordinates for area elements.
CROSSORIGIN'crossorigin'crossorigin — How the element handles cross-origin requests.
CSS_CLASS'class'class — Space-separated list of classes for the element.
DATETIME'datetime'datetime — Date and time associated with the element (e.g., <time>).
DECODING'decoding'decoding — Preferred method to decode an image.
DEFER'defer'defer — Indicates that the script should be executed after the page has been parsed.
DIR'dir'dir — Text direction (ltr/rtl).
DIRNAME'dirname'dirname — Indicates that the element’s text directionality should be submitted with the form control.
DISABLED'disabled'disabled — Indicates that the user cannot interact with the element.
DOWNLOAD'download'download — Indicates that the hyperlink is to be used for downloading a resource.
DRAGGABLE'draggable'draggable — Defines whether the element can be dragged.
ENCTYPE'enctype'enctype — Content type of the form data when method is POST.
ENTERKEYHINT'enterkeyhint'enterkeyhint — Hint for the enter key on virtual keyboards.
FETCHPRIORITY'fetchpriority'fetchpriority — Fetch priority hint for certain resources (images, links, scripts).
FOR'for'for — Identifies the element(s) which the label is bound to.
FORM'form'form — Indicates the form owner of a control.
FORMACTION'formaction'formaction — Overrides the action attribute of the form for a submit button.
FORMENCTYPE'formenctype'formenctype — Overrides the form enctype for a submit button.
FORMMETHOD'formmethod'formmethod — Overrides the form method for a submit button.
FORMNOVALIDATE'formnovalidate'formnovalidate — When present, form is not validated on submit for this button.
FORMTARGET'formtarget'formtarget — Overrides the form target for a submit button.
HEADERS'headers'headers — IDs of <th> elements which apply to this cell.
HEIGHT'height'height — Specifies the height of certain elements.
HIDDEN'hidden'hidden — Prevents rendering of the element.
HIGH'high'high — Upper bound of the upper range for <meter>.
HREF'href'href — The URL of a linked resource.
HREFLANG'hreflang'hreflang — Specifies the language of the linked resource.
HTTP_EQUIV'http-equiv'http-equiv — Defines a pragma directive for meta elements.
ID'id'id — Unique identifier for the element.
INPUTMODE'inputmode'inputmode — Hint about what kind of input modality (e.g., numeric) is expected.
INTEGRITY'integrity'integrity — Subresource integrity metadata for fetched resources.
ISMAP'ismap'ismap — Indicates that the image is part of a server-side image map.
ITEMID'itemid'itemid — Microdata item identifier.
ITEMPROP'itemprop'itemprop — Microdata item property name.
ITEMREF'itemref'itemref — Microdata item reference.
ITEMSCOPE'itemscope'itemscope — Indicates that the element is a microdata item.
ITEMTYPE'itemtype'itemtype — Microdata item type.
KIND'kind'kind — Kind of text track for <track> elements.
LABEL'label'label — User-readable title of the element.
LANG'lang'lang — Language code for the element’s content.
LIST'list'list — Identifies a datalist element that provides predefined options.
LOADING'loading'loading — Lazy or eager loading hint for images and iframes.
LOOP'loop'loop — Indicates whether media should loop.
LOW'low'low — Upper bound of the lower range for <meter>.
MAX'max'max — Maximum numeric value for inputs and other controls.
MAXLENGTH'maxlength'maxlength — Maximum number of characters allowed.
MEDIA'media'media — Hint describing the media for which the resource is designed.
METHOD'method'method — HTTP method used to submit a form (GET or POST).
MIN'min'min — Minimum numeric value for inputs and other controls.
MINLENGTH'minlength'minlength — Minimum number of characters required.
MULTIPLE'multiple'multiple — Indicates that multiple values can be selected.
MUTED'muted'muted — Indicates whether the media should be muted by default.
NAME'name'name — Name of the element, commonly used in form submissions.
NOVALIDATE'novalidate'novalidate — Indicates that a form shouldn’t be validated on submit.
OPEN'open'open — Indicates whether details/dialog are open.
OPTIMUM'optimum'optimum — Optimal numeric value for <meter>.
PATTERN'pattern'pattern — Regular expression that the input’s value must match.
PING'ping'ping — Space-separated list of URLs to be notified when the link is followed.
PLACEHOLDER'placeholder'placeholder — Hint text for inputs and textareas.
PLAYSINLINE'playsinline'playsinline — Hint to play video inline (not fullscreen).
POSTER'poster'poster — URL of poster frame for video.
PRELOAD'preload'preload — Hint about what media should be preloaded.
READONLY'readonly'readonly — Indicates that the value cannot be modified by the user.
REFERRERPOLICY'referrerpolicy'referrerpolicy — Referrer information to send when fetching the resource.
REL'rel'rel — Relationship of the linked resource to the current document.
REQUIRED'required'required — Indicates that a control must be filled out before submitting the form.
REVERSED'reversed'reversed — Indicates that an ordered list is displayed in descending order.
ROLE'role'role — Defines an explicit ARIA role for the element.
ROWS'rows'rows — Number of rows for a textarea.
ROWSPAN'rowspan'rowspan — Number of rows a table cell should span.
SANDBOX'sandbox'sandbox — Restricts capabilities of content in an iframe.
SCOPE'scope'scope — Scope of a header cell in a table.
SELECTED'selected'selected — Indicates that an option should be preselected on page load.
SHAPE'shape'shape — Shape for area elements.
SIZE'size'size — Width in characters for inputs or number of items for select.
SIZES'sizes'sizes — Sizes attribute for responsive images and links.
SLOT'slot'slot — Assigns an element to a named slot in shadow DOM.
SPAN'span'span — Number of columns a <col> or <colgroup> should span.
SPELLCHECK'spellcheck'spellcheck — Indicates whether spell checking is enabled for the element.
SRC'src'src — URL of embeddable content.
SRCDOC'srcdoc'srcdoc — HTML content for an iframe.
SRCLANG'srclang'srclang — Language of the track text data.
SRCSET'srcset'srcset — One or more responsive image candidates.
START'start'start — Starting value for ordered lists.
STEP'step'step — Granularity of numeric inputs.
STYLE'style'style — Inline CSS styles for the element.
TABINDEX'tabindex'tabindex — Overrides the browser’s default tab order.
TARGET'target'target — Where to display the response after following a link or submitting a form.
TITLE'title'title — Advisory title for the element (often shown as a tooltip).
TRANSLATE'translate'translate — Whether the element’s content should be translated.
TYPE'type'type — Type information for various elements (input, script, link, etc.).
USEMAP'usemap'usemap — Indicates an image is associated with a client-side image map.
VALUE'value'value — Default value for form controls and other elements.
WIDTH'width'width — Specifies the width of certain elements.
WRAP'wrap'wrap — Indicates how text should be wrapped in a textarea.