Attribute |
Tag |
Description |
---|---|---|
accept |
<form>,<input> |
List of types the server accepts, typically a file type. |
accept-charset |
<form> |
List of supported charsets. |
accesskey |
Global attribute |
Defines a keyboard shortcut to activate or add focus to the element. |
action |
<form> |
The URI of a program that processes the information submitted via the form. |
align |
<img>,<p>, |
Specifies the horizontal alignment of the element. |
alt |
<img> |
Alternative text in case an image can't be displayed. |
async |
<script> |
Indicates that the script should be executed asynchronously. |
autocomplete |
<form>,<input> |
Indicates whether controls in this form can by default have their values automatically completed by the browser. |
autoplay |
<audio>,<video> |
The audio or video should play as soon as possible. |
autosave |
<input> |
Previous values should persist dropdowns of selectable values across page loads. |
bgcolor |
<body> |
Set background color of body,This is a legacy attribute. Please use the CSS background-color property instead. |
border |
<img>,<table> |
Used to set border but,This is a legacy attribute. Please use the CSS border property instead. |
buffered |
<audio>,<video> |
Contains the time range of already buffered media. |
challenge |
<command>,<input> |
Indicates whether the element should be checked on page load. |
cite |
<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 |
<applet> |
This attribute gives the absolute or relative URL of the directory where applets' .class files referenced by the code attribute are stored. |
color |
<font> |
|
cols |
<textarea> |
Defines the number of columns in a textarea. |
colspan |
<td>,<th> |
The colspan attribute defines the number of columns a cell should span. |
content |
<meta> |
A value associated with http-equiv or name depending on the context. |