2014年3月17日月曜日

The global attributes

HTML attributes give elements meaning and context.

The global attributes below can be used on any HTML element.

HTML Global Attributes
5= Attribute added in HTML5.

Attribute :Description
accesskey :Specifies a shortcut key to activate/focus an element
class :Specifies one or more classnames for an element (refers to a class in a style sheet)
contenteditable 5:Specifies whether the content of an element is editable or not
contextmenu 5:Specifies a context menu for an element. The context menu appears when a user right-clicks on the element
data-* 5:Used to store custom data private to the page or application
dir :Specifies the text direction for the content in an element
draggable 5:Specifies whether an element is draggable or not
dropzone 5:Specifies whether the dragged data is copied, moved, or linked, when dropped
hidden 5:Specifies that an element is not yet, or is no longer, relevant
id :Specifies a unique id for an element
lang :Specifies the language of the element's content
spellcheck 5:Specifies whether the element is to have its spelling and grammar checked or not
style :Specifies an inline CSS style for an element
tabindex :Specifies the tabbing order of an element
title :Specifies extra information about an element
translate 5:Specifies whether the content of an element should be translated or not

0 件のコメント:

コメントを投稿