HTML attribute reference

  • Revision slug: HTML/Attributes
  • Revision title: Attributes
  • Revision id: 333059
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

Attribute Name Elements Description
accept {{ HTMLElement("form") }}, {{ HTMLElement("input") }} List of types the server accepts, typically a file type.
accept-charset {{ HTMLElement("form") }} List of supported charsets.
accesskey Global attribute Defines a keyboard shortcut to activate or add focus to the element.
action {{ HTMLElement("form") }} The URI of a program that processes the information submitted via the form.
align {{ HTMLElement("applet") }}, {{ HTMLElement("caption") }}, {{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }},  {{ HTMLElement("hr") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("table") }}, {{ HTMLElement("tbody") }},  {{ HTMLElement("td") }},  {{ HTMLElement("tfoot") }} , {{ HTMLElement("th") }}, {{ HTMLElement("thead") }}, {{ HTMLElement("tr") }} Specifies the horizontal alignment of the element.
alt

{{ HTMLElement("applet") }}, {{ HTMLElement("area") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}

Alternative text in case an image can't be displayed.
async {{ HTMLElement("script") }} Indicates that the script should be executed asynchronously.
autocomplete {{ HTMLElement("form") }}, {{ HTMLElement("input") }} Indicates whether controls in this form can by default have their values automatically completed by the browser.
autofocus {{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }} The element should be automatically focused after the page loaded.
autoplay {{ HTMLElement("audio") }}, {{ HTMLElement("video") }} The audio or video should play as soon as possible.
bgcolor {{ HTMLElement("body") }}, {{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }}, {{ HTMLElement("marquee") }}, {{ HTMLElement("table") }}, {{ HTMLElement("tbody") }}, {{ HTMLElement("tfoot") }}, {{ HTMLElement("td") }}, {{ HTMLElement("th") }}, {{ HTMLElement("tr") }}

Background color of the element.

Note: This is a legacy attribute. Please use the CSS {{ Cssxref("background-color") }} property instead.

border {{ HTMLElement("img") }}, {{ HTMLElement("object") }}, {{ HTMLElement("table") }}

The border width.

Note: This is a legacy attribute. Please use the CSS {{ Cssxref("border") }} property instead.

buffered {{ HTMLElement("audio") }}, {{ HTMLElement("video") }} Contains the time range of already buffered media.
challenge {{ HTMLElement("keygen") }} A challenge string that is submitted along with the public key.
charset {{ HTMLElement("meta") }}, {{ HTMLElement("script") }} Declares the character encoding of the page or script.
checked {{ HTMLElement("command") }}, {{ HTMLElement("input") }} Indicates whether the element should be checked on page load.
cite {{ HTMLElement("blockquote") }}, {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("q") }} Contains a URI which points to the source of the quote or change.
class Global attribute Often used with CSS to style elements with common properties.
code {{ HTMLElement("applet") }} Specifies the URL of the applet's class file to be loaded and executed.
codebase {{ HTMLElement("applet") }} This attribute gives the absolute or relative URL of the directory where applets' .class files referenced by the code attribute are stored.
color {{ HTMLElement("basefont") }}, {{ HTMLElement("font") }}, {{ HTMLElement("hr") }}

This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format.

Note: This is a legacy attribute. Please use the CSS {{ Cssxref("color") }} property instead.

cols {{ HTMLElement("textarea") }} Defines the number of columns in a textarea.
colspan {{ HTMLElement("td") }}, {{ HTMLElement("th") }} The colspan attribute defines the number of columns a cell should span.
content {{ HTMLElement("meta") }} A value associated with http-equiv or name depending on the context.
contenteditable Global attribute Indicates whether the element's content is editable.
contextmenu Global attribute Defines the ID of a {{ HTMLElement("menu") }} element which will serve as the element's context menu.
controls {{ HTMLElement("audio") }}, {{ HTMLElement("video") }} Indicates whether the browser should show playback controls to the user.
coords {{ HTMLElement("area") }} A set of values specifying the coordinates of the hot-spot region.
data {{ HTMLElement("object") }} Specifies the URL of the resource.
datetime {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("time") }} Indicates the date and time associated with the element.
default {{ HTMLElement("track") }} Indicates that the track should be enabled unless the user's preferences indicate something different.
defer {{ HTMLElement("script") }} Indicates that the script should be executed after the page has been parsed.
dir Global attribute Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
dirname {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}  
disabled {{ HTMLElement("button") }}, {{ HTMLElement("command") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("optgroup") }}, {{ HTMLElement("option") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }} Indicates whether the user can interact with the element.
draggable Global attribute Defines whether the element can be dragged.
dropzone Global attribute Indicates that the element accept the dropping of content on it.
enctype {{ HTMLElement("form") }} Defines the content type of the form date when the method is POST.
for {{ HTMLElement("label") }}, {{ HTMLElement("output") }} Describes elements which belongs to this one.
form {{ HTMLElement("button") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("label") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("object") }}, {{ HTMLElement("output") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }} Indicates the form that is the owner of the element.
headers {{ HTMLElement("td") }}, {{ HTMLElement("th") }} IDs of the <th> elements which applies to this element.
height {{ HTMLElement("canvas") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}, {{ HTMLElement("object") }}, {{ HTMLElement("video") }} Note: In some instances, such as {{ HTMLElement("div") }}, this is a legacy attribute, in which case the CSS {{ Cssxref("height") }} property should be used instead. In other cases, such as {{ HTMLElement("canvas") }}, the height must be specified with this attribute.
hidden Global attribute Indicates the relevance of an element.
high {{ HTMLElement("meter") }} Indicates the lower bound of the upper range.
href {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("link") }}  The URL of a linked resource.
hreflang {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }} Specifies the language of the linked resource.
http-equiv {{ HTMLElement("meta") }}  
icon {{ HTMLElement("command") }} Specifies a picture which represents the command.
id Global attribute Often used with CSS to style a specific element. The value of this attribute must be unique.
ismap {{ HTMLElement("img") }} Indicatesthat the image is part of a server-side image map.
itemprop Global attribute  
keytype {{ HTMLElement("keygen") }} Specifies the type of key generated.
kind {{ HTMLElement("track") }} Specifies the kind of text track.
label {{ HTMLElement("track") }} Specifies a user-readable title of the text track.
lang Global attribute Defines the language used in the element.
language {{ HTMLElement("script") }} Defines the script language used in the element.
list {{ HTMLElement("input") }} Identifies a list of pre-defined options to suggest to the user.
loop {{ HTMLElement("audio") }}, {{ HTMLElement("bgsound") }}, {{ HTMLElement("marquee") }}, {{ HTMLElement("video") }} Indicates whether the media should start playing from the start when it's finished.
low {{ HTMLElement("meter") }} Indicates the upper bound of the lower range.
manifest {{ HTMLElement("html") }} Specifies the URL of the document's cache manifest.
max {{ HTMLElement("input") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }} Indicates the maximum value allowed.
maxlength {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }} Defines the maximum number of characters allowed in the element.
media {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }} Specifies a hint of the media for which the linked resource was designed.
method {{ HTMLElement("form") }} Defines which HTTP method to use when submitting the form. Can be GET (default) or POST.
min {{ HTMLElement("input") }}, {{ HTMLElement("meter") }} Indicates the minimum value allowed.
multiple {{ HTMLElement("input") }}, {{ HTMLElement("select") }} Indicates whether multiple values can be entered in an input of the type email or file.
name {{ HTMLElement("button") }}, {{ HTMLElement("form") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("object") }}, {{ HTMLElement("output") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}, {{ HTMLElement("map") }}, {{ HTMLElement("meta") }}, {{ HTMLElement("param") }} Name of the element. For example used by the server to identify the fields in form submits.
novalidate {{ HTMLElement("form") }} This attribute indicates that the form shouldn't be validated when submitted.
open {{ HTMLElement("details") }} Indicates whether the details will be shown on page load.
optimum {{ HTMLElement("meter") }} Indicates the optimal numeric value.
pattern {{ HTMLElement("input") }} Defines a regular expression which the element's value will be validated against.
ping {{ HTMLElement("a") }}, {{ HTMLElement("area") }}  
placeholder {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }} Provides a hint to the user of what can be entered in the field.
poster {{ HTMLElement("video") }} A URL indicating a poster frame to show until the user plays or seeks.
preload {{ HTMLElement("audio") }}, {{ HTMLElement("video") }} Indicates whether the whole resource, parts of it or nothing should be preloaded.
pubdate {{ HTMLElement("time") }} Indicates whether this date and time is the date of the nearest {{ HTMLElement("article") }} ancestor element.
radiogroup {{ HTMLElement("command") }}  
readonly {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }} Indicates whether the element can be edited.
rel {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }} Specifies the relationship of the target object to the link object.
required {{ HTMLElement("input") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }} Indicates whether this element is required to fill out or not.
reversed {{ HTMLElement("ol") }} Indicates whether the list should be displayed in a descending order instead of a ascending.
rows {{ HTMLElement("textarea") }} Defines the number of rows in a textarea.
rowspan {{ HTMLElement("td") }}, {{ HTMLElement("th") }} Defines the number of rows a table cell should span over.
sandbox {{ HTMLElement("iframe") }}  
spellcheck Global attribute Indicates whether spell checking is allowed for the element.
scope {{ HTMLElement("th") }}  
scoped {{ HTMLElement("style") }}  
seamless {{ HTMLElement("iframe") }}  
selected {{ HTMLElement("option") }} Defines a value which will be selected on page load.
shape {{ HTMLElement("a") }}, {{ HTMLElement("area") }}  
size {{ HTMLElement("input") }}, {{ HTMLElement("select") }} Defines the width of the element (in pixels). If the element's type attribute is text or password then it's the number of characters.
sizes {{ HTMLElement("link") }}  
span {{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }}  
src {{ HTMLElement("audio") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}, {{ HTMLElement("script") }}, {{ HTMLElement("source") }}, {{ HTMLElement("track") }}, {{ HTMLElement("video") }} The URL of the embeddable content.
srcdoc {{ HTMLElement("iframe") }}  
srclang {{ HTMLElement("track") }}  
start {{ HTMLElement("ol") }} Defines the first number if other than 1.
step {{ HTMLElement("input") }}  
style Global attribute Defines CSS styles which will override styles previously set.
summary {{ HTMLElement("table") }}  
tabindex Global attribute Overrides the browser's default tab order and follows the one specified instead.
target {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("form") }}  
title Global attribute Text to be displayed in a tooltip when hovering over the element.
type {{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("command") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("object") }}, {{ HTMLElement("script") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }}, {{ HTMLElement("menu") }} Defines the type of the element.
usemap {{ HTMLElement("img") }},  {{ HTMLElement("input") }}, {{ HTMLElement("object") }}  
value {{ HTMLElement("button") }}, {{ HTMLElement("option") }}, {{ HTMLElement("input") }}, {{ HTMLElement("li") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("param") }} Defines a default value which will be displayed in the element on page load.
width {{ HTMLElement("canvas") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}, {{ HTMLElement("object") }}, {{ HTMLElement("video") }} Note: In some instances, such as {{ HTMLElement("div") }}, this is a legacy attribute, in which case the CSS {{ Cssxref("width") }} property should be used instead. In other cases, such as {{ HTMLElement("canvas") }}, the width must be specified with this attribute.
wrap {{ HTMLElement("textarea") }} Indicates whether the text should be wrapped.

{{ languages( { "fr": "fr/HTML/Attributs", "en": "en/HTML/Attributes", "ja": "ja/HTML/Attributes" } ) }}

Revision Source

<table class="standard-table">
  <thead>
    <tr>
      <th>Attribute Name</th>
      <th>Elements</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>accept</td>
      <td>{{ HTMLElement("form") }}, {{ HTMLElement("input") }}</td>
      <td>List of types the server accepts, typically a file type.</td>
    </tr>
    <tr>
      <td>accept-charset</td>
      <td>{{ HTMLElement("form") }}</td>
      <td>List of supported charsets.</td>
    </tr>
    <tr>
      <td>accesskey</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Defines a keyboard shortcut to activate or add focus to the element.</td>
    </tr>
    <tr>
      <td>action</td>
      <td>{{ HTMLElement("form") }}</td>
      <td>The URI of a program that processes the information submitted via the form.</td>
    </tr>
    <tr>
      <td>align</td>
      <td>{{ HTMLElement("applet") }}, {{ HTMLElement("caption") }}, {{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }},&nbsp; {{ HTMLElement("hr") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("table") }}, {{ HTMLElement("tbody") }},&nbsp; {{ HTMLElement("td") }},&nbsp; {{ HTMLElement("tfoot") }} , {{ HTMLElement("th") }}, {{ HTMLElement("thead") }}, {{ HTMLElement("tr") }}</td>
      <td>Specifies the horizontal alignment of the element.</td>
    </tr>
    <tr>
      <td>alt</td>
      <td>
        <p>{{ HTMLElement("applet") }}, {{ HTMLElement("area") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}</p>
      </td>
      <td>Alternative text in case an image can't be displayed.</td>
    </tr>
    <tr>
      <td>async</td>
      <td>{{ HTMLElement("script") }}</td>
      <td>Indicates that the script should be executed asynchronously.</td>
    </tr>
    <tr>
      <td>autocomplete</td>
      <td>{{ HTMLElement("form") }}, {{ HTMLElement("input") }}</td>
      <td>Indicates whether controls in this form can by default have their values automatically completed by the browser.</td>
    </tr>
    <tr>
      <td>autofocus</td>
      <td>{{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
      <td>The element should be automatically focused after the page loaded.</td>
    </tr>
    <tr>
      <td>autoplay</td>
      <td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
      <td>The audio or video should play as soon as possible.</td>
    </tr>
    <tr>
      <td>bgcolor</td>
      <td>{{ HTMLElement("body") }}, {{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }}, {{ HTMLElement("marquee") }}, {{ HTMLElement("table") }}, {{ HTMLElement("tbody") }}, {{ HTMLElement("tfoot") }}, {{ HTMLElement("td") }}, {{ HTMLElement("th") }}, {{ HTMLElement("tr") }}</td>
      <td>
        <p>Background color of the element.</p>
        <p>Note: This is a legacy attribute. Please use the CSS {{ Cssxref("background-color") }} property instead.</p>
      </td>
    </tr>
  </tbody>
  <tbody>
    <tr>
      <td>border</td>
      <td>{{ HTMLElement("img") }}, {{ HTMLElement("object") }}, {{ HTMLElement("table") }}</td>
      <td>
        <p>The border width.</p>
        <p>Note: This is a legacy attribute. Please use the CSS {{ Cssxref("border") }} property instead.</p>
      </td>
    </tr>
    <tr>
      <td>buffered</td>
      <td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
      <td>Contains the time range of already buffered media.</td>
    </tr>
    <tr>
      <td>challenge</td>
      <td>{{ HTMLElement("keygen") }}</td>
      <td>A challenge string that is submitted along with the public key.</td>
    </tr>
    <tr>
      <td>charset</td>
      <td>{{ HTMLElement("meta") }}, {{ HTMLElement("script") }}</td>
      <td>Declares the character encoding of the page or script.</td>
    </tr>
    <tr>
      <td>checked</td>
      <td>{{ HTMLElement("command") }}, {{ HTMLElement("input") }}</td>
      <td>Indicates whether the element should be checked on page load.</td>
    </tr>
    <tr>
      <td>cite</td>
      <td>{{ HTMLElement("blockquote") }}, {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("q") }}</td>
      <td>Contains a URI which points to the source of the quote or change.</td>
    </tr>
    <tr>
      <td>class</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Often used with CSS to style elements with common properties.</td>
    </tr>
    <tr>
      <td>code</td>
      <td>{{ HTMLElement("applet") }}</td>
      <td>Specifies the URL of the applet's class file to be loaded and executed.</td>
    </tr>
    <tr>
      <td>codebase</td>
      <td>{{ HTMLElement("applet") }}</td>
      <td>This attribute gives the absolute or relative URL of the directory where applets' .class files referenced by the code attribute are stored.</td>
    </tr>
    <tr>
      <td>color</td>
      <td>{{ HTMLElement("basefont") }}, {{ HTMLElement("font") }}, {{ HTMLElement("hr") }}</td>
      <td>
        <p>This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format.</p>
        <p>Note: This is a legacy attribute. Please use the CSS {{ Cssxref("color") }} property instead.</p>
      </td>
    </tr>
    <tr>
      <td>cols</td>
      <td>{{ HTMLElement("textarea") }}</td>
      <td>Defines the number of columns in a textarea.</td>
    </tr>
    <tr>
      <td>colspan</td>
      <td>{{ HTMLElement("td") }}, {{ HTMLElement("th") }}</td>
      <td>The colspan attribute defines the number of columns a cell should span.</td>
    </tr>
    <tr>
      <td>content</td>
      <td>{{ HTMLElement("meta") }}</td>
      <td>A value associated with <code>http-equiv</code> or <code>name</code> depending on the context.</td>
    </tr>
    <tr>
      <td>contenteditable</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Indicates whether the element's content is editable.</td>
    </tr>
    <tr>
      <td>contextmenu</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Defines the ID of a {{ HTMLElement("menu") }} element which will serve as the element's context menu.</td>
    </tr>
    <tr>
      <td>controls</td>
      <td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
      <td>Indicates whether the browser should show playback controls to the user.</td>
    </tr>
    <tr>
      <td>coords</td>
      <td>{{ HTMLElement("area") }}</td>
      <td>A set of values specifying the coordinates of the hot-spot region.</td>
    </tr>
    <tr>
      <td>data</td>
      <td>{{ HTMLElement("object") }}</td>
      <td>Specifies the URL of the resource.</td>
    </tr>
    <tr>
      <td>datetime</td>
      <td>{{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("time") }}</td>
      <td>Indicates the date and time associated with the element.</td>
    </tr>
    <tr>
      <td>default</td>
      <td>{{ HTMLElement("track") }}</td>
      <td>Indicates that the track should be enabled unless the user's preferences indicate something different.</td>
    </tr>
    <tr>
      <td>defer</td>
      <td>{{ HTMLElement("script") }}</td>
      <td>Indicates that the script should be executed after the page has been parsed.</td>
    </tr>
    <tr>
      <td>dir</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)</td>
    </tr>
    <tr>
      <td>dirname</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>disabled</td>
      <td>{{ HTMLElement("button") }}, {{ HTMLElement("command") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("optgroup") }}, {{ HTMLElement("option") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
      <td>Indicates whether the user can interact with the element.</td>
    </tr>
    <tr>
      <td>draggable</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Defines whether the element can be dragged.</td>
    </tr>
    <tr>
      <td>dropzone</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Indicates that the element accept the dropping of content on it.</td>
    </tr>
    <tr>
      <td>enctype</td>
      <td>{{ HTMLElement("form") }}</td>
      <td>Defines the content type of the form date when the <code>method</code> is POST.</td>
    </tr>
    <tr>
      <td>for</td>
      <td>{{ HTMLElement("label") }}, {{ HTMLElement("output") }}</td>
      <td>Describes elements which belongs to this one.</td>
    </tr>
    <tr>
      <td>form</td>
      <td>{{ HTMLElement("button") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("label") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("object") }}, {{ HTMLElement("output") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
      <td>Indicates the form that is the owner of the element.</td>
    </tr>
    <tr>
      <td>headers</td>
      <td>{{ HTMLElement("td") }}, {{ HTMLElement("th") }}</td>
      <td>IDs of the <code>&lt;th&gt;</code> elements which applies to this element.</td>
    </tr>
    <tr>
      <td>height</td>
      <td>{{ HTMLElement("canvas") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}, {{ HTMLElement("object") }}, {{ HTMLElement("video") }}</td>
      <td>Note: In some instances, such as {{ HTMLElement("div") }}, this is a legacy attribute, in which case the CSS {{ Cssxref("height") }}&nbsp;property should be used instead. In other cases, such as {{ HTMLElement("canvas") }}, the height must be specified with this attribute.</td>
    </tr>
  </tbody>
  <tbody>
    <tr>
      <td>hidden</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Indicates the relevance of an element.</td>
    </tr>
    <tr>
      <td>high</td>
      <td>{{ HTMLElement("meter") }}</td>
      <td>Indicates the lower bound of the upper range.</td>
    </tr>
    <tr>
      <td>href</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("link") }}</td>
      <td>&nbsp;The URL of a linked resource.</td>
    </tr>
    <tr>
      <td>hreflang</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}</td>
      <td>Specifies the language of the linked resource.</td>
    </tr>
    <tr>
      <td>http-equiv</td>
      <td>{{ HTMLElement("meta") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>icon</td>
      <td>{{ HTMLElement("command") }}</td>
      <td>Specifies a picture which represents the command.</td>
    </tr>
    <tr>
      <td>id</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Often used with CSS to style a specific element. The value of this attribute must be unique.</td>
    </tr>
    <tr>
      <td>ismap</td>
      <td>{{ HTMLElement("img") }}</td>
      <td>Indicatesthat the image is part of a server-side image map.</td>
    </tr>
    <tr>
      <td>itemprop</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>keytype</td>
      <td>{{ HTMLElement("keygen") }}</td>
      <td>Specifies the type of key generated.</td>
    </tr>
    <tr>
      <td>kind</td>
      <td>{{ HTMLElement("track") }}</td>
      <td>Specifies the kind of text track.</td>
    </tr>
    <tr>
      <td>label</td>
      <td>{{ HTMLElement("track") }}</td>
      <td>Specifies a user-readable title of the text track.</td>
    </tr>
    <tr>
      <td>lang</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Defines the language used in the element.</td>
    </tr>
    <tr>
      <td>language</td>
      <td>{{ HTMLElement("script") }}</td>
      <td>Defines the script language used in the element.</td>
    </tr>
    <tr>
      <td>list</td>
      <td>{{ HTMLElement("input") }}</td>
      <td>Identifies a list of pre-defined options to suggest to the user.</td>
    </tr>
    <tr>
      <td>loop</td>
      <td>{{ HTMLElement("audio") }}, {{ HTMLElement("bgsound") }}, {{ HTMLElement("marquee") }}, {{ HTMLElement("video") }}</td>
      <td>Indicates whether the media should start playing from the start when it's finished.</td>
    </tr>
    <tr>
      <td>low</td>
      <td>{{ HTMLElement("meter") }}</td>
      <td>Indicates the upper bound of the lower range.</td>
    </tr>
    <tr>
      <td>manifest</td>
      <td>{{ HTMLElement("html") }}</td>
      <td>Specifies the URL of the document's cache manifest.</td>
    </tr>
    <tr>
      <td>max</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }}</td>
      <td>Indicates the maximum value allowed.</td>
    </tr>
    <tr>
      <td>maxlength</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td>
      <td>Defines the maximum number of characters allowed in the element.</td>
    </tr>
    <tr>
      <td>media</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }}</td>
      <td>Specifies a hint of the media for which the linked resource was designed.</td>
    </tr>
    <tr>
      <td>method</td>
      <td>{{ HTMLElement("form") }}</td>
      <td>Defines which HTTP method to use when submitting the form. Can be GET (default) or POST.</td>
    </tr>
    <tr>
      <td>min</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("meter") }}</td>
      <td>Indicates the minimum value allowed.</td>
    </tr>
    <tr>
      <td>multiple</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("select") }}</td>
      <td>Indicates whether multiple values can be entered in an input of the type <code>email</code> or <code>file</code>.</td>
    </tr>
    <tr>
      <td>name</td>
      <td>{{ HTMLElement("button") }}, {{ HTMLElement("form") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("object") }}, {{ HTMLElement("output") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}, {{ HTMLElement("map") }}, {{ HTMLElement("meta") }}, {{ HTMLElement("param") }}</td>
      <td>Name of the element. For example used by the server to identify the fields in form submits.</td>
    </tr>
    <tr>
      <td>novalidate</td>
      <td>{{ HTMLElement("form") }}</td>
      <td>This attribute indicates that the form shouldn't be validated when submitted.</td>
    </tr>
    <tr>
      <td>open</td>
      <td>{{ HTMLElement("details") }}</td>
      <td>Indicates whether the details will be shown on page load.</td>
    </tr>
    <tr>
      <td>optimum</td>
      <td>{{ HTMLElement("meter") }}</td>
      <td>Indicates the optimal numeric value.</td>
    </tr>
    <tr>
      <td>pattern</td>
      <td>{{ HTMLElement("input") }}</td>
      <td>Defines a regular expression which the element's value will be validated against.</td>
    </tr>
    <tr>
      <td>ping</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>placeholder</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td>
      <td>Provides a hint to the user of what can be entered in the field.</td>
    </tr>
    <tr>
      <td>poster</td>
      <td>{{ HTMLElement("video") }}</td>
      <td>A URL indicating a poster frame to show until the user plays or seeks.</td>
    </tr>
    <tr>
      <td>preload</td>
      <td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
      <td>Indicates whether the whole resource, parts of it or nothing should be preloaded.</td>
    </tr>
    <tr>
      <td>pubdate</td>
      <td>{{ HTMLElement("time") }}</td>
      <td>Indicates whether this date and time is the date of the nearest {{ HTMLElement("article") }} ancestor element.</td>
    </tr>
    <tr>
      <td>radiogroup</td>
      <td>{{ HTMLElement("command") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>readonly</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td>
      <td>Indicates whether the element can be edited.</td>
    </tr>
    <tr>
      <td>rel</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}</td>
      <td>Specifies the relationship of the target object to the link object.</td>
    </tr>
    <tr>
      <td>required</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
      <td>Indicates whether this element is required to fill out or not.</td>
    </tr>
    <tr>
      <td>reversed</td>
      <td>{{ HTMLElement("ol") }}</td>
      <td>Indicates whether the list should be displayed in a descending order instead of a ascending.</td>
    </tr>
    <tr>
      <td>rows</td>
      <td>{{ HTMLElement("textarea") }}</td>
      <td>Defines the number of rows in a textarea.</td>
    </tr>
    <tr>
      <td>rowspan</td>
      <td>{{ HTMLElement("td") }}, {{ HTMLElement("th") }}</td>
      <td>Defines the number of rows a table cell should span over.</td>
    </tr>
    <tr>
      <td>sandbox</td>
      <td>{{ HTMLElement("iframe") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>spellcheck</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Indicates whether spell checking is allowed for the element.</td>
    </tr>
    <tr>
      <td>scope</td>
      <td>{{ HTMLElement("th") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>scoped</td>
      <td>{{ HTMLElement("style") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>seamless</td>
      <td>{{ HTMLElement("iframe") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>selected</td>
      <td>{{ HTMLElement("option") }}</td>
      <td>Defines a value which will be selected on page load.</td>
    </tr>
    <tr>
      <td>shape</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>size</td>
      <td>{{ HTMLElement("input") }}, {{ HTMLElement("select") }}</td>
      <td>Defines the width of the element (in pixels). If the element's <code>type</code> attribute is <code>text</code> or <code>password</code> then it's the number of characters.</td>
    </tr>
    <tr>
      <td>sizes</td>
      <td>{{ HTMLElement("link") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>span</td>
      <td>{{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>src</td>
      <td>{{ HTMLElement("audio") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}, {{ HTMLElement("script") }}, {{ HTMLElement("source") }}, {{ HTMLElement("track") }}, {{ HTMLElement("video") }}</td>
      <td>The URL of the embeddable content.</td>
    </tr>
    <tr>
      <td>srcdoc</td>
      <td>{{ HTMLElement("iframe") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>srclang</td>
      <td>{{ HTMLElement("track") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>start</td>
      <td>{{ HTMLElement("ol") }}</td>
      <td>Defines the first number if other than 1.</td>
    </tr>
    <tr>
      <td>step</td>
      <td>{{ HTMLElement("input") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>style</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Defines CSS styles which will override styles previously set.</td>
    </tr>
    <tr>
      <td>summary</td>
      <td>{{ HTMLElement("table") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>tabindex</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Overrides the browser's default tab order and follows the one specified instead.</td>
    </tr>
    <tr>
      <td>target</td>
      <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("form") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>title</td>
      <td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">Global attribute</a></td>
      <td>Text to be displayed in a tooltip when hovering over the element.</td>
    </tr>
    <tr>
      <td>type</td>
      <td>{{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("command") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("object") }}, {{ HTMLElement("script") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }}, {{ HTMLElement("menu") }}</td>
      <td>Defines the type of the element.</td>
    </tr>
    <tr>
      <td>usemap</td>
      <td>{{ HTMLElement("img") }},&nbsp; {{ HTMLElement("input") }}, {{ HTMLElement("object") }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>value</td>
      <td>{{ HTMLElement("button") }}, {{ HTMLElement("option") }}, {{ HTMLElement("input") }}, {{ HTMLElement("li") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("param") }}</td>
      <td>Defines a default value which will be displayed in the element on page load.</td>
    </tr>
    <tr>
      <td>width</td>
      <td>{{ HTMLElement("canvas") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}, {{ HTMLElement("object") }}, {{ HTMLElement("video") }}</td>
      <td>Note: In some instances, such as {{ HTMLElement("div") }}, this is a legacy attribute, in which case the CSS {{ Cssxref("width") }}&nbsp;property should be used instead. In other cases, such as {{ HTMLElement("canvas") }}, the width must be specified with this attribute.</td>
    </tr>
    <tr>
      <td>wrap</td>
      <td>{{ HTMLElement("textarea") }}</td>
      <td>Indicates whether the text should be wrapped.</td>
    </tr>
  </tbody>
</table>
<p>{{ languages( { "fr": "fr/HTML/Attributs", "en": "en/HTML/Attributes", "ja": "ja/HTML/Attributes" } ) }}</p>
Revert to this revision