HTML Attributes Chart
Attribute Belongs to Description
accept <input> Specifies the types of files that the server accepts (only fo
accept-charset <form> Specifies the character encodings that are to be used for
accesskey Global Attributes Specifies a shortcut key to activate/focus an element
action <form> Specifies where to send the form-data when a form is sub
align Not supported in HTML5 Specifies the alignment. Use CSS instead
alt <area>, <img>, <input> Specifies an alternate text when the original element fails
async <script> Specifies that the script is executed asynchronously (only
autocomplete <form>, <input> Specifies whether the form or input should have autocom
autofocus <button>, <input>, <select>, <textarea>
Specifies that the element should automatically get focus
autoplay <audio>, <video> Specifies that the media will start playing as soon as it is r
bgcolor Not supported in HTML5 Specifies the background color of an element. Use CSS in
border Not supported in HTML5 Specifies the width of the border of an element. Use CSS
charset <meta>, <script> Specifies the character encoding
checked <input> Specifies that an input element should be pre-selected wh
cite <blockquote>, <del>, <ins>, <q> Specifies a URL which explains the quote/deleted/inserte
class Global Attributes Specifies one or more classnames for an element
cols <textarea> Specifies the visible width of a text area
colspan <td>, <th> Specifies the number of columns a table cell should span
content <meta> Gives the value associated with the http-equiv or name at
contenteditable Global Attributes Specifies whether the content of an element is editable or
controls <audio>, <video> Specifies that audio/video controls should be displayed
coords <area> Specifies the coordinates of the area
data <object> Specifies the URL of the resource to be used by the objec
data-* Global Attributes Used to store custom data private to the page or applicati
HTML Attributes Chart
Attribute Belongs to Description
datetime <del>, <ins>, <time> Specifies the date and time
default <track> Specifies that the track is to be enabled if no other is prefe
defer <script> Specifies that the script is executed when the page has fin
dir Global Attributes Specifies the text direction for the content in an element
dirname <input>, <textarea> Specifies that the text direction will be submitted
disabled <button>, <fieldset>, <input>, <optgroup>,
Specifies
<option>,
that the
<select>,
element
<textarea>
should be disabled