The attributes listed below are supported by all HTML 5 tags, with a few exceptions.
HTML5 Standard Attributes
New : New standard attributes in HTML5.
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 its spelling and 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 |
Comments
Post a Comment