The following attributes may be used with most HTML elements | |||
Global Attribute | Description | Version | |
| accesskey | For adding a keyboard shortcut to an element | |
aria-* | For associating accessibility attribute values specified by WAI-ARIA | 5 | |
class | For identifying a set of elements in order to apply styles to them | ||
contenteditable | For making the content of an element editable | 5 | |
contextmenu | For identifying a contextual menu for an element (the value must be the same as a menu element's id attribute) | 5 | |
data-* | For storing custom data that is private to the page or application | 5 | |
dir | For specifying the element's text direction | ||
draggable | For making an element draggable | 5 | |
dropzone | For identifying an element as a place where draggable elements can be dropped | 5 | |
event | For associating an element with a script (event is a placeholder for the actual event name) | ||
hidden | For indicating that an element is not yet relevant or is no longer relevant | 5 | |
id | For identifying a particular element so that it can be linked to, styled, or scripted with JavaScript | ||
lang | For specifying the language an element is written in | ||
role | For providing additional information to assistive devices about the role of an element as defined by WAI-ARIA | 5 | |
spellcheck | For indicating whether the content of an element should have its spelling and grammar checked | 5 | |
style | For adding local style sheet information | ||
tabindex | For defining the order in which the Tab key takes the visitor through elements | ||
title | For labeling elements with tool tips |
2016年10月17日月曜日
HTML Global Attributes
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿