RSS
热门关键字:  数据挖掘  数据仓库  人工智能  搜索引擎  数据挖掘导论

HTML tag

来源: 作者:unkonwn 时间:2004-12-01 点击:

Definition and Usage

This element tells a browser that this is an HTML document.

数据挖掘研究院


Differences Between HTML and XHTML

The xmlns attribute is required in XHTML but not in HTML. However, the validator on w3.org does not complain when this attribute is missing from the <html> tag in an XHTML document. This is because "xmlns=http://www.w3.org/1999/xhtml" is a fixed value and will be added to the <html> tag even if you do not include it. 数据挖掘实验室


Example

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
</head>

数据挖掘实验室

<body>
...
...
...
</body>

</html>

数据挖掘研究院



Required Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset. 数据挖掘研究院

Attribute Value Description DTD
xmlns http://www.w3.org/1999/xhtml Defines the XML namespace attribute STF
数据挖掘研究院

Standard Attributes

dir, lang, xml:lang

数据挖掘研究院

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).

数据挖掘实验室


Core Attributes

Not valid in base, head, html, meta, param, script, style, and title elements. 数据挖掘研究院

Attribute Value Description
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
数据挖掘研究院

Language Attributes

Not valid in base, br, frame, frameset, hr, iframe, param, and script elements.

数据挖掘研究院

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
数据挖掘研究院
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
匿名?