html5英文文档,HTML5参考手册(英文版)

TABLE A.1 HTML Global Attributes

The following attributes may be used with most HTML elements

Global Attribute Description

accesskey For adding a keyboard shortcut to an element

aria-* For associating accessibility attribute values specified by WAI-ARIA class For identifying a set of elements in order to apply styles to them contenteditable For making the content of an element editable

contextmenu For identifying a contextual menu for an element (the value must be the same as a menu element’s id attribute)

data-* For storing custom data that is private to the page or application

dir For specifying the element’s text direction

draggable For making an element draggable

dropzone For identifying an element as a place where draggable elements can be dropped

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

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

spellcheck For indicating whether the content of an element should have its spelling and grammar checked 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

TABLE A.2 HTML Elements and Attributes

Element/Attribute(s) Description

a For creating links and anchors

href For specifying the URL of a page or the name of an anchor that a link goes to

hreflang For specifying the language of the linked resource

media For describing the media for which the target document was defined

rel For identifying the nature of the link

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值