2. HTML5 Global Attributes
< | attribute | = | "value(s)" | > | video demo | examples |
---|---|---|---|---|---|---|
2. global attributes | ||||||
1. | accesskey | = | keyboard key | » img | <accesskey="h"> ... <⁄ > | |
2. | class | = | class name | » html » img | <class="class_name"> ... <⁄ > | |
3. | contenteditable | = | "", , true, false | » html | <contenteditable="true"> ... <⁄ > | |
4. | contextmenu | = | menu id value | » html | <contextmenu="menu_id_value"> ... <⁄ > | |
5. | data-* | = | value | - | <data-http-error="404"> ... <⁄ > | |
6. | dir | = | ltr, rtl, auto | » html | <dir="ltr"> ... <⁄ > | |
7. | draggable | = | true, , false | » img | <draggable="false"> ... <⁄ > | |
8. | dropzone | = | copy, move, link, string:, file: | - | <dropzone="copy"> ... <⁄ > | |
9. | hidden | = | "", , hidden | » html » img | <hidden="hidden"> ... <⁄ > | |
10. | id | = | id name | » html » img | <id="unique_id_name"> ... <⁄ > | |
11. | itemid | = | URL | - | - | |
12. | itemprop | = | string | » link » a | <itemprop="url" href="http://imdb.com/name/007/"> | |
13. | itemref | = | string | - | - | |
14. | itemscope | = | "", , itemscope | - | - | |
15. | itemtype | = | absolute URL | - | - | |
16. | lang | = | language code | » html» head » title» img | <lang="en"> ... <⁄ > | |
17. | spellcheck | = | "", , true, false | » html | <spellcheck="true"> ... <⁄ > | |
18. | style | = | CSS property:value | » html» img | <style="color:red"> ... <⁄ > | |
19. | tabindex | = | integer | » img | <tabindex="3"> ... <⁄ > | |
20. | title | = | text | » html » link » style » abbr » dfn » img » meter | <title="html page"> ... <⁄ > | |
21. | translate | = | "", yes, no | » html » img | <translate="yes"> ... <⁄ > |