HTML 5 Standard Attributes
The attributes listed below are supported by all HTML
5 tags, with a few exceptions.
HTML 5 Standard Attributes
New : New standard attributes in HTML 5.
| Attribute |
Value |
Description |
| accesskey |
character |
Specifies a keyboard shortcut to access an element. |
| class |
classname |
Specifies a classname for an element (used to specify a class in
a style sheet). |
| contenteditableNew |
true
false |
Specifies if the user is allowed to edit the content or not. |
| contextmenuNew |
menu_id |
Specifies the context menu for an element. |
| data-yourvalueNew |
value |
Author defined attributes. Authors of a HTML document can
define their own attributes. Must start with "data-". |
| dir |
ltr rtl |
Specifies the text direction
for the content in an element. |
| draggableNew |
true false auto |
Specifies whether or not a user is allowed to drag an element. |
| hiddenNew |
hidden |
Specifies that the element is not relevant. Hidden elements are
not displayed. |
| id |
id |
Specifies a unique id for an element. |
| itemNew |
empty
url |
Used to group elements. |
| itempropNew |
url
group value |
Used to group items. |
| lang |
language_code |
Specifies a language code for the content in an element.
Language code reference |
| spellcheckNew |
true
false |
Specifies if the element must have it's spelling or grammar
checked. |
| style |
style_definition |
Specifies an inline style for an element. |
| subjectNew |
id |
Specifies the element's corresponding item. |
| tabindex |
number |
Specifies the tab order of an element. |
| title |
text |
Specifies extra information about an element. |
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|