当前位置: 首页 > 网络学院 > 网页制作基础教程 > XHTML > XHTML 属性
XHTML 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).
XHTML可含有属性. 各标签所特有的属性都在下面标签的描述中. 这里所罗列的都是所有标签的核心和语言属性(个别除外)
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 设定元素的定位键命令 |