Element Attribute Index

The table below uses the <tag attribute> notation indicating the namespace partition as described in the HTML Namespaces and Namespace Declarations Tutorial.

AttributeTag(s) Where Valid
accept<input accept>
accept-charset<form accept-charset>
accesskeyaccesskey Global Attribute
action<form action>
alt<area alt> <img alt> <input alt>
async<script async>
autocomplete<form autocomplete> <input autocomplete>
autofocus<button autofocus> <input autofocus> <keygen autofocus> <select autofocus> <textarea autofocus>
autoplay<audio autoplay> <video autoplay>
challenge<kengen challenge>
charset<meta charset> <script charset>
checked<command checked> <input checked>
cite<blockquote cite> <del cite> <ins cite> <q cite>
classclass Global Attribute
codecs<source codecs>
cols<textarea cols>
colspan<td colspan> <th colspan>
compact<ol compact>
content<meta content>
contenteditablecontenteditable Global Attribute
controls<audio controls> <video controls>
coords<area coords>
data<object data>
data-*data-* Author-Defined Attributes
datetime<del datetime> <ins datetime> <time datetime>
default<track default>
defer<script defer>
dirdir Global Attribute <bdi dir> <bdo dir>
disabled<button disabled> <command disabled> <input disabled> <keygen disabled> <optgroup disabled> <option disabled> <select disabled> <textarea disabled>
draggabledraggable Global Attribute
dropzonedropzone Global Attribute
encoding<?xml encoding?>
enctype<form enctype>
form<button form> <input form> <keygen form> <object form> <select form> <textarea form>
formaction<button formaction> <input formaction>
formenctype<button formenctype> <input formenctype>
formmethod<button formmethod> <input formmethod>
formnovalidate<button formnovalidate> <input formnovalidate>
formtarget<button formtarget> <input formtarget>
headers<td headers> <th headers>
height<canvas height> <embed height> <iframe height> <img height> <input height> <object height> <video height>
hiddenhidden Global Attribute
href<a href> <area href> <base href> <link href> <?xml-stylesheet href?>
hreflang<a hreflang> <area hreflang> <link hreflang>
http-equiv<meta http-equiv>
icon<command icon>
idid Global Attribute <dfn id>
ismap<img ismap>
itemiditemid Microdata Attribute
itempropitemprop Microdata Attribute
itemrefitemref Microdata Attribute
itemscopeitemscope Microdata Attribute
itemtypeitemtype Microdata Attribute
keytype<keygen keytype>
kind<track kind>
label<command label> <menu label> <optgroup label> <option label> <track label>
langlang Global Attribute
language<script language>
list<input list>
loop<audio loop> <video loop>
manifest<html manifest>
max<input max>
maxlength<input maxlength> <textarea maxlength>
media<a media> <area media> <link media> <style media>
method<form method>
min<input min>
multiple<input multiple> <select multiple>
name<button name> <form name> <iframe name> <input name> <keygen name> <meta name> <object name> <select name> <textarea name>
novalidate<form novalidate>
AttributeTag(s) Where Valid
on...on... Event Attributes
onblur<body onblur>
oncanplay<audio oncanplay> <video oncanplay>
oncanplaythrough<audio oncanplaythrough> <video oncanplaythrough>
onemptied<audio onemptied> <video onemptied>
onended<audio onended> <video onended>
onerror<audio onerror> <body onerror> <video onerror>
onfocus<body onfocus>
onload<body onload>
onloadeddata<audio onloadeddata> <video onloadeddata>
onloadedmetadata<audio onloadedmetadata> <video onloadedmetadata>
onloadstart<audio onloadstart> <video onloadstart>
onpause<audio onpause> <video onpause>
onplaying<audio onplaying> <video onplaying>
onprogress<audio onprogress> <video onprogress>
onratechange<audio onratechange> <video onratechange>
onreadystatechange<audio onreadystatechange> <video onreadystatechaneg>
onscroll<body onscroll>
onseeked<audio onseeked> <video onseeked>
onseeking<audio onseeking> <video onseeking>
onstalled<audio onstalled> <video onstalled>
onsuspend<audio onsuspend> <video onsuspend>
ontimeupdate<audio ontimeupdate> <video ontimeupdate>
onvolumechange<audio onvolumechange> <video onvolumechange>
onwaiting<audio onwaiting> <video onwaiting>
open<details open>
pattern<input pattern>
ping<a ping> <area ping>
placeholder<input placeholder> <textarea placeholder>
poster<video poster>
preload<audio preload> <video preload>
pubdate<time pubdate>
radiogroup<command radiogroup>
readonly<input readonly> <textarea readonly>
rel<a rel> <area rel> <link rel>
required<input required> <textarea required>
reversed<ol reversed>
rows<textarea rows>
rowspan<td rowspan> <th rowspan>
sandbox<iframe sandbox>
scope<th scope>
scoped<style scoped>
seamless<iframe seamless>
selected<option selected>
shape<area shape>
size<input size> <select size>
sizes<link sizes>
span<colgroup span>
spellcheckspellcheck Global Attribute
src<audio src> <embed src> <iframe src> <img src> <input src> <script src> <source src> <track src> <video src>
srcdoc<iframe srcdoc>
srclang<track srclang>
standalone<?xml standalone?>
start<ol start>
step<input step>
stylestyle Global Attribute <svg style>
tabindextabindex Global Attribute
target<a target> <area target> <base target> <form target>
titletitle Global Attribute <abbr title> <command title> <dfn title> <link title> <style title>
type<a type> <area type> <button type> <command type> <embed type> <input type> <link type> <menu type> <object type> <ol type> <script type> <source type> <style type> <?xml-stylesheet type?>
usemap<img usemap> <object usemap>
value<button value> <input value> <option value>
version<?xml version?> <html version> <svg version>
width<canvas width> <embed width> <iframe width> <img width> <input width> <object width> <video width>
wrap<textarea wrap>
xmlnsxmlns Global Attribute <html xmlns> <mathml xmlns> <svg xmlns>