当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > 标准属性
HTML tags can have attributes. The special attributes for each tag are listed under each tag description. The attributes listed here are the core and language attributes that are standard for all tags (with a few exceptions).
HTML标签有属性.各标签都有各自特殊的属性.在这里罗列的属性是其中的核心并对所有标签来讲都是标准的(个别除外):
Not valid in base, head, html, meta, param, script, style, and title elements.
在 base, head, html, meta, param, script, style, 和 title元素中无效
Attribute 属性 | Value 值 | Description 描述 |
---|---|---|
class | class_rule or style_rule | The class of the element 元素类别 |
id | id_name | A unique id for the element 唯一ID |
style | style_definition | An inline style definition 内样式 |
title | tooltip_text | A text to display in a tool tip 提示 |
Not valid in base, br, frame, frameset, hr, iframe, param, and script elements.
在base, br, frame, frameset, hr, iframe, param, 和 script中无效
Attribute 属性 | Value 值 | Description 描述 |
---|---|---|
dir | ltr | rtl | Sets the text direction 设置文序 |
lang | language_code | Sets the language code 语言代码 |
Attribute 属性 | Value 值 | Description 描述 |
---|---|---|
accesskey | character | Sets a keyboard shortcut to access an element 设置键盘快捷访问 |
tabindex | number | Sets the tab order of an element 设定元素的定位键命令 |