HTML attribute reference

  • Revision slug: HTML/Attributes
  • Revision title: Attributes
  • Revision id: 44191
  • Created:
  • Creator: masondesu
  • Is current revision? No
  • Comment Fixed a few double spaces; one or more formatting changes

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") }}  
accesskey Global Attribute  
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 a 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 witdth.

  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") }}  
charset {{ HTMLElement("meta") }}, {{ HTMLElement("script") }}  Declares the character encoding of the page or script.
checked {{ HTMLElement("command") }}, {{ HTMLElement("input") }}  
cite {{ HTMLElement("blockquote") }}, {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("q") }}  
class Global attribute  
code {{ HTMLElement("applet") }}  
codebase {{ HTMLElement("applet") }}  
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") }}  
colspan {{ HTMLElement("td") }}, {{ HTMLElement("th") }}  
content {{ HTMLElement("meta") }}  
contenteditable Global attribute  
contextmenu Global attribute  
controls {{ HTMLElement("audio") }}, {{ HTMLElement("video") }}  
coords {{ HTMLElement("area") }}  
data {{ HTMLElement("object") }}  
datetime {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("time") }}  
default {{ HTMLElement("track") }}  
defer {{ HTMLElement("script") }}  
dir Global attribute  
dirname {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}  
disabled {{ HTMLElement("button") }}, {{ HTMLElement("command") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("optgroup") }}, {{ HTMLElement("option") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}  
draggable Global attribute  
dropzone Global attribute  
enctype {{ HTMLElement("form") }}  
for {{ HTMLElement("label") }}, {{ HTMLElement("output") }}  
form {{ HTMLElement("meter") }}, Needs Check Indicates the form that is the owner of the element.
headers Needs Check  
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  
high {{ HTMLElement("meter") }} Indicates the lower bound of the upper range.
href {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("link") }}  
hreflang {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}  
http-equiv {{ HTMLElement("meta") }}  
icon {{ HTMLElement("command") }}  
id Global attribute  
ismap {{ HTMLElement("img") }}  
itemprop Global attribute  
keytype {{ HTMLElement("keygen") }}  
kind {{ HTMLElement("track") }}  
label Global attribute  
lang Global attribute  
language {{ HTMLElement("script") }}  
list {{ HTMLElement("input") }}  
loop {{ HTMLElement("audio") }}, {{ HTMLElement("bgsound") }}, {{ HTMLElement("marquee") }}, {{ HTMLElement("video") }}  
low {{ HTMLElement("meter") }} Indicates the upper bound of the lower range.
manifest {{ HTMLElement("html") }}  
max {{ HTMLElement("input") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }} Indicates the maximum value allowed.
maxlength {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}  
maxlength {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}  
media {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }}  
method {{ HTMLElement("form") }}  
min {{ HTMLElement("input") }}, {{ HTMLElement("meter") }} Indicates the minimum value allowed.
multiple {{ HTMLElement("input") }}, {{ HTMLElement("select") }}  
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") }}  
novalidate {{ HTMLElement("form") }}  
open {{ HTMLElement("details") }}  
optimum {{ HTMLElement("meter") }}  
pattern {{ HTMLElement("input") }}  
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") }}  
pubdate {{ HTMLElement("time") }}  
radiogroup {{ HTMLElement("command") }}  
readonly {{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}  
rel {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}  
required {{ HTMLElement("input") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}  
reveresed {{ HTMLElement("ol") }}  
rows {{ HTMLElement("textarea") }}  
rowspan {{ HTMLElement("td") }}, {{ HTMLElement("th") }}  
sandbox {{ HTMLElement("iframe") }}  
spellcheck Global attribute  
scope {{ HTMLElement("th") }}  
scoped {{ HTMLElement("style") }}  
seamless {{ HTMLElement("iframe") }}  
selected {{ HTMLElement("option") }}  
shape {{ HTMLElement("a") }}, {{ HTMLElement("area") }}  
size {{ HTMLElement("input") }}, {{ HTMLElement("select") }}  
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") }}  
step {{ HTMLElement("input") }}  
style Global attribute  
summary {{ HTMLElement("table") }}  
tabindex Global attribute  
target {{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("form") }}  
title Global attribute  
type {{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("command") }}, {{ HTMLElement("embed") }}, {{ HTMLElement("object") }}, {{ HTMLElement("script") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }}, {{ HTMLElement("menu") }}  
usemap {{ HTMLElement("img") }},  {{ HTMLElement("input") }}, {{ HTMLElement("object") }}  
value {{ HTMLElement("button") }}, {{ HTMLElement("option") }}, {{ HTMLElement("input") }}, {{ HTMLElement("li") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("param") }}  
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") }}  

Revision Source

<p> </p>
<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> </td> </tr> <tr> <td>accesskey</td> <td>Global Attribute</td> <td> </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") }},  {{ HTMLElement("hr") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("table") }}, {{ HTMLElement("tbody") }},  {{ HTMLElement("td") }},  {{ 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 a 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 witdth.</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> </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> </td> </tr> <tr> <td>cite</td> <td>{{ HTMLElement("blockquote") }}, {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("q") }}</td> <td> </td> </tr> <tr> <td>class</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>code</td> <td>{{ HTMLElement("applet") }}</td> <td> </td> </tr> <tr> <td>codebase</td> <td>{{ HTMLElement("applet") }}</td> <td> </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> </td> </tr> <tr> <td>colspan</td> <td>{{ HTMLElement("td") }}, {{ HTMLElement("th") }}</td> <td> </td> </tr> <tr> <td>content</td> <td>{{ HTMLElement("meta") }}</td> <td> </td> </tr> <tr> <td>contenteditable</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>contextmenu</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>controls</td> <td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td> <td> </td> </tr> <tr> <td>coords</td> <td>{{ HTMLElement("area") }}</td> <td> </td> </tr> <tr> <td>data</td> <td>{{ HTMLElement("object") }}</td> <td> </td> </tr> <tr> <td>datetime</td> <td>{{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("time") }}</td> <td> </td> </tr> <tr> <td>default</td> <td>{{ HTMLElement("track") }}</td> <td> </td> </tr> <tr> <td>defer</td> <td>{{ HTMLElement("script") }}</td> <td> </td> </tr> <tr> <td>dir</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>dirname</td> <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td> <td> </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> </td> </tr> <tr> <td>draggable</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>dropzone</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>enctype</td> <td>{{ HTMLElement("form") }}</td> <td> </td> </tr> <tr> <td>for</td> <td>{{ HTMLElement("label") }}, {{ HTMLElement("output") }}</td> <td> </td> </tr> <tr> <td>form</td> <td>{{ HTMLElement("meter") }}, <span style="color: red;">Needs Check</span></td> <td>Indicates the form that is the owner of the element.</td> </tr> <tr> <td>headers</td> <td><span style="color: red;">Needs Check</span></td> <td> </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") }} 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>Global attribute</td> <td> </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> </td> </tr> <tr> <td>hreflang</td> <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}</td> <td> </td> </tr> <tr> <td>http-equiv</td> <td>{{ HTMLElement("meta") }}</td> <td> </td> </tr> <tr> <td>icon</td> <td>{{ HTMLElement("command") }}</td> <td> </td> </tr> <tr> <td>id</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>ismap</td> <td>{{ HTMLElement("img") }}</td> <td> </td> </tr> <tr> <td>itemprop</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>keytype</td> <td>{{ HTMLElement("keygen") }}</td> <td> </td> </tr> <tr> <td>kind</td> <td>{{ HTMLElement("track") }}</td> <td> </td> </tr> <tr> <td>label</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>lang</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>language</td> <td>{{ HTMLElement("script") }}</td> <td> </td> </tr> <tr> <td>list</td> <td>{{ HTMLElement("input") }}</td> <td> </td> </tr> <tr> <td>loop</td> <td>{{ HTMLElement("audio") }}, {{ HTMLElement("bgsound") }}, {{ HTMLElement("marquee") }}, {{ HTMLElement("video") }}</td> <td> </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> </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> </td> </tr> <tr> <td>maxlength</td> <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td> <td> </td> </tr> <tr> <td>media</td> <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}, {{ HTMLElement("source") }}, {{ HTMLElement("style") }}</td> <td> </td> </tr> <tr> <td>method</td> <td>{{ HTMLElement("form") }}</td> <td> </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> </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> </td> </tr> <tr> <td>novalidate</td> <td>{{ HTMLElement("form") }}</td> <td> </td> </tr> <tr> <td>open</td> <td>{{ HTMLElement("details") }}</td> <td> </td> </tr> <tr> <td>optimum</td> <td>{{ HTMLElement("meter") }}</td> <td> </td> </tr> <tr> <td>pattern</td> <td>{{ HTMLElement("input") }}</td> <td> </td> </tr> <tr> <td>ping</td> <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}</td> <td> </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> </td> </tr> <tr> <td>pubdate</td> <td>{{ HTMLElement("time") }}</td> <td> </td> </tr> <tr> <td>radiogroup</td> <td>{{ HTMLElement("command") }}</td> <td> </td> </tr> <tr> <td>readonly</td> <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td> <td> </td> </tr> <tr> <td>rel</td> <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("link") }}</td> <td> </td> </tr> <tr> <td>required</td> <td>{{ HTMLElement("input") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td> <td> </td> </tr> <tr> <td>reveresed</td> <td>{{ HTMLElement("ol") }}</td> <td> </td> </tr> <tr> <td>rows</td> <td>{{ HTMLElement("textarea") }}</td> <td> </td> </tr> <tr> <td>rowspan</td> <td>{{ HTMLElement("td") }}, {{ HTMLElement("th") }}</td> <td> </td> </tr> <tr> <td>sandbox</td> <td>{{ HTMLElement("iframe") }}</td> <td> </td> </tr> <tr> <td>spellcheck</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>scope</td> <td>{{ HTMLElement("th") }}</td> <td> </td> </tr> <tr> <td>scoped</td> <td>{{ HTMLElement("style") }}</td> <td> </td> </tr> <tr> <td>seamless</td> <td>{{ HTMLElement("iframe") }}</td> <td> </td> </tr> <tr> <td>selected</td> <td>{{ HTMLElement("option") }}</td> <td> </td> </tr> <tr> <td>shape</td> <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}</td> <td> </td> </tr> <tr> <td>size</td> <td>{{ HTMLElement("input") }}, {{ HTMLElement("select") }}</td> <td> </td> </tr> <tr> <td>sizes</td> <td>{{ HTMLElement("link") }}</td> <td> </td> </tr> <tr> <td>span</td> <td>{{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }}</td> <td> </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> </td> </tr> <tr> <td>srclang</td> <td>{{ HTMLElement("track") }}</td> <td> </td> </tr> <tr> <td>start</td> <td>{{ HTMLElement("ol") }}</td> <td> </td> </tr> <tr> <td>step</td> <td>{{ HTMLElement("input") }}</td> <td> </td> </tr> <tr> <td>style</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>summary</td> <td>{{ HTMLElement("table") }}</td> <td> </td> </tr> <tr> <td>tabindex</td> <td>Global attribute</td> <td> </td> </tr> <tr> <td>target</td> <td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}, {{ HTMLElement("base") }}, {{ HTMLElement("form") }}</td> <td> </td> </tr> <tr> <td>title</td> <td>Global attribute</td> <td> </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> </td> </tr> <tr> <td>usemap</td> <td>{{ HTMLElement("img") }},  {{ HTMLElement("input") }}, {{ HTMLElement("object") }}</td> <td> </td> </tr> <tr> <td>value</td> <td>{{ HTMLElement("button") }}, {{ HTMLElement("option") }}, {{ HTMLElement("input") }}, {{ HTMLElement("li") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("param") }}</td> <td> </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") }} 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> </td> </tr> </tbody>
</table>
Revert to this revision