XHTML 属性
XHTML可含有属性. 各标签所特有的属性都在下面标签的描述中. 这里所罗列的都是所有标签的核心和语言属性(个别除外)
核心属性
在 base, head, html, meta, param, script, style, 和 title 元素中无效.
属性 值 描述
class class_rule or style_rule The class of the element
id id_name A unique id for the element
style style_definition An inline style definition
title tooltip_text A text to display in a tool tip
语言属性
在 valid in base, br, frame, frameset, hr, iframe, param, 和script 元素中无效.
属性 值 描述
dir ltr | rtl Sets the text direction
lang language_code Sets the language code
按键属性
属性 值 描述
accesskey character Sets a keyboard shortcut to access an element
tabindex number Sets the tab order of an element
核心属性
在 base, head, html, meta, param, script, style, 和 title 元素中无效.
属性 值 描述
class class_rule or style_rule The class of the element
id id_name A unique id for the element
style style_definition An inline style definition
title tooltip_text A text to display in a tool tip
语言属性
在 valid in base, br, frame, frameset, hr, iframe, param, 和script 元素中无效.
属性 值 描述
dir ltr | rtl Sets the text direction
lang language_code Sets the language code
按键属性
属性 值 描述
accesskey character Sets a keyboard shortcut to access an element
tabindex number Sets the tab order of an element

