HTML attribute reference - HTML | MDN (original) (raw)

Elements in HTML have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.

Attribute list

, ,,
, ,,
Attribute Name Elements Description
accept , List of types the server accepts, typically a file type.
accept-charset The character set, which if provided must be "UTF-8".
accesskey Global attribute Keyboard shortcut to activate or add focus to the element.
action The URI of a program that processes the information submitted via the form.
align Deprecated
,, ,, ,, Specifies the horizontal alignment of the element. allow Specifies a feature-policy for the iframe. alt ,, Alternative text in case an image can't be displayed. as Specifies the type of content being loaded by the link. async