Skip to content
PHP Ecosystem
Explore

Attribute

API reference › HTML Attribute › Values › Attribute

enumUIAwesome\Html\Attribute\Values\Attribute
Backed bystring
Sourcesrc/Values/Attribute.php

Represents 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.
AUTOCOMPLETE'autocomplete'autocomplete — Indicates whether controls can have their values automatically completed.
CAPTURE'capture'capture — Media capture hint for file inputs.
CHECKED'checked'checked — Indicates whether the command or control is checked.
CONTENT'content'content — A value associated with a meta element.
CROSSORIGIN'crossorigin'crossorigin — How the element handles cross-origin requests.
DIRNAME'dirname'dirname — Enables the submission of the directionality of the element.
DISABLED'disabled'disabled — Indicates whether the user can interact with the element.
ELEMENTTIMING'elementtiming'elementtiming — Marks the element for observation by the PerformanceElementTiming API.
FETCHPRIORITY'fetchpriority'fetchpriority — Hints at the relative priority for fetching a resource.
FOR'for'for — Describes elements which belong to this one.
FORM'form'form — Indicates the form that is the owner of the element.
INTEGRITY'integrity'integrity — Contains inline metadata that a user agent can use to verify that a fetched resource has been delivered without unexpected manipulation (Subresource Integrity).
MAX'max'max — Indicates the maximum value allowed.
MAXLENGTH'maxlength'maxlength — Defines the maximum number of characters allowed in the element.
MEDIA'media'media — Specifies the media that the linked resource applies to.
MIN'min'min — Indicates the minimum value allowed.
MINLENGTH'minlength'minlength — Defines the minimum number of characters allowed in the element.
MULTIPLE'multiple'multiple — Indicates whether multiple values can be entered in an input of the type email or file.
PATTERN'pattern'pattern — Defines a regular expression which the element’s value will be validated against.
PLACEHOLDER'placeholder'placeholder — Provides a hint to the user of what can be entered in the field.
READONLY'readonly'readonly — Indicates whether the element can be edited.
REFERRERPOLICY'referrerpolicy'referrerpolicy — Specifies which referrer to use when fetching the resource.
REL'rel'rel — Specifies the relationship of the target object to the link object.
REQUIRED'required'required — Indicates whether this element is required to fill out or not.
SIZE'size'size — Defines the width of the element (in pixels).
SRC'src'src — Specifies the URL of the resource.
STEP'step'step — Defines the granularity of the value in an input of type number or range.
TARGET'target'target — Specifies the browsing context for hyperlink navigation or form submission.
TYPE'type'type — Defines the type of the element.