HTML 属性-网站制作-3P代码网
繁体中文
设为首页
加入收藏
当前位置:网站制作首页 >> HTML教程 >> HTML 属性

HTML 属性

2007-07-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介: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 ...
关键字:属性 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标签有属性.各标签都有各自特殊的属性.在这里罗列的属性是其中的核心并对所有标签来讲都是标准的(个别除外):

Core Attributes

核心属性

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

提示

Language Attributes

语言属性

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

语言代码

Keyboard Attributes

键盘属性

Attribute

属性

Value

Description

描述

accesskey

character

Sets a keyboard shortcut to access an element

设置键盘快捷访问

tabindex

number

Sets the tab order of an element

设定元素的定位键命令

责任编辑:admin
相关文章