| 网站首页 | 文章中心 | 电子书下载 | 矢量图库 | 视频教程 | 素材下载 | 程序代码下载 | JS代码 | 论坛 | 
常用软件类:
|杀毒安全 |联络聊天 |网络软件 |多媒体类 |系统工具 |图形图像 |系统工具 |应用软件 |行业软件
开发设计类:
|动画制作 |图像处理 |3D设计 |操作系统 |站长学院 |网络相关 |WEB设计 |数据库类 |程序开发
XHTML 1.0 Tags 参考
作者:未知    文章来源:网络    点击数:    更新时间:2006-6-23
 

XHTML 1.0 参考

译自:http://www.w3schools.com/xhtml/xhtml_ref_byfunc.asp
译者:拖鞋飞扬(catest)
按功能排列

  • NN: 表明哪个早期Netscape版本支持这个标签
  • IE: 表明哪个早期Internet Explorer版本支持这个标签
  • DTD: 表明符合XHTML 1.0 DTD 何级别的定义。 S=Strict(严格), T=Transitional(过渡), and F=Frameset(框架)
开始标签 用途(Purpose) NN IE DTD
         
基本标签        
<!DOCTYPE> 文档类型(Defines the document type)     STF
<html> html文档(Defines a html document) 3.0 3.0 STF
<body> body元素(Defines the body element) 3.0 3.0 STF
<h1> to <h6> 标题1 -- 标题6(Defines header 1 to header 6) 3.0 3.0 STF
<p> 段落(Defines a paragraph) 3.0 3.0 STF
<br /> 换行(Inserts a single line break) 3.0 3.0 STF
<hr /> 水平线(Defines a horizontal rule) 3.0 3.0 STF
<!--...--> 注释(Defines a comment) 3.0 3.0 STF
Char Format        
<b> 粗体文本(Defines bold text) 3.0 3.0 STF
<font> 文字的外观,大小和颜色(Defines the font face, size, and color of text) 3.0 3.0 TF
<i> 文本为斜体(Defines italic text) 3.0 3.0 STF
<em> 文本为重要(Defines emphasized text) 3.0 3.0 STF
<big> 文本增大(Defines big text) 3.0 3.0 STF
<strong> 文本为非常重要(Defines strong text) 3.0 3.0 STF
<small> 文本缩小(Defines small text) 3.0 3.0 STF
<sup> 文本上标(Defines superscripted text) 3.0 3.0 STF
<sub> 文本下标(Defines subscripted text) 3.0 3.0 STF
<bdo> 文本输出顺序(Defines the direction of text display) 6.2 5.0 STF
<u> 文本下划线(Defines underlined text) 3.0 3.0 TF
输出        
<pre> 预先格式(保留文件中空格的大小)(Defines preformatted text) 3.0 3.0 STF
<code> 码(显示源码用)(Defines computer code text) 3.0 3.0 STF
<tt> 打印机字体(Defines teletype text) 3.0 3.0 STF
<kbd> 键盘(Defines keyboard text) 3.0 3.0 STF
<dfn> 定义(Defines a definition term)   3.0 STF
<var> 变数(Defines a variable) 3.0 3.0 STF
<samp> 样本(Defines sample computer code) 3.0 3.0 STF
<xmp> 不赞成使用,使用<pre>代替(Deprecated. Defines preformatted text. Use <pre> instead) 3.0 3.0  
结构性定义        
<acronym> 只取首字母的缩写词(Defines an acronym) 6.2 4.0 STF
<abbr> 缩写(Defines an abbreviation) 6.2 ? STF
<address> 地址(Defines an address element) 4.0 4.0 STF
<blockquote> 引文区块(Defines an long quotation) 3.0 3.0 STF
<center> 句中对齐(Defines centered text) 3.0 3.0 TF
<q> 引用短语(Defines a short quotation) 6.2 4.0 STF
<cite> 引文(Defines a citation) 3.0 3.0 STF
<ins> 插入(Defines inserted text) 6.2 4.0 STF
<del> 删除(Defines deleted text) 6.2 4.0 STF
<s> 删除线(Defines strikethrough text) 3.0 3.0 TF
<strike> 删除线(Defines strikethrough text) 3.0 3.0 TF
链接        
<a> 链接(Defines an anchor) 3.0 3.0 STF
<link> 资源参考(Defines a resource reference) 4.0 3.0 STF
框架        
<frame> 定义个别视框(Defines a sub window (a frame)) 3.0 3.0 F
<frameset> 视框格式总定义(Defines a set of frames) 3.0 3.0 F
<noframes> 无视框时的内容(Defines a noframe section) 3.0 3.0 TF
<iframe> 定义嵌入视图(Defines an inline sub window (frame)) 6.0 4.0 TF
输入        
<form> 定义表单(Defines a form) 3.0 3.0 STF
<input /> 定义输入域(Defines an input field) 3.0 3.0 STF
<textarea> 输入区换行方式(Defines a text area) 3.0 3.0 STF
<button> 按钮(Defines a push button) 6.2 4.0 STF
<select> 下拉式选单(Defines a selectable list) 3.0 3.0 STF
<optgroup> 选项组(Defines an option group) 6.0 6.0 STF
<option> 列表选项(Defines an item in a list box) 3.0 3.0 STF
<label>

标签(用于表单控制?)(Defines a label for a form control)

6.2 4.0 STF
<fieldset> 域(Defines a fieldset) 6.2 4.0 STF
<legend> 域标题(Defines a title in a fieldset) 6.2 4.0 STF
<isindex> 不建议使用(可搜寻,使用input代替)(Deprecated. Defines a single-line input field. Use <input> instead) 3.0 3.0 TF
列举        
<ul> 无次序式列举(Defines an unordered list) 3.0 3.0 STF
<ol> 有次序式列举(Defines an ordered list) 3.0 3.0 STF
<li> 每条项目列表(Defines a list item) 3.0 3.0 STF
<dir> 目录式列举(Defines a directory list) 3.0 3.0 TF
<dl> 定义式列举(Defines a definition list) 3.0 3.0 STF
<dt> 定义项目(Defines a definition term) 3.0 3.0 STF
<dd> 定义说明(Defines a definition description) 3.0 3.0 STF
<menu> 菜单列表(Defines a menu list) 3.0 3.0 TF
图片        
<img /> 图片(Defines an image) 3.0 3.0 STF
<map> 图片地图(Defines an image map) 3.0 3.0 STF
<area /> 图片热点(Defines an area inside an image map) 3.0 3.0 STF
表格        
<table> 表格(Defines a table) 3.0 3.0 STF
<caption> 表格抬头(Defines a table caption) 3.0 3.0 STF
<th> 表格标题(Defines a table header) 3.0 3.0 STF
<tr> 行(Defines a table row) 3.0 3.0 STF
<td> 单元格(列)(Defines a table cell) 3.0 3.0 STF
<thead> 定义表格头(Defines a table header)   4.0 STF
<tbody> 定义表格主体(Defines a table body)   4.0 STF
<tfoot> 定义表格脚(Defines a table footer)   4.0 STF
<col> 定义特有特征(Defines attributes for table columns)   3.0 STF
<colgroup> 定义特征集合(Defines groups of table columns)   3.0 STF
样式        
<style> 样式定义(Defines a style definition) 4.0 3.0 STF
<div> 在文档中定义一个区域(Defines a section in a document) 3.0 3.0 STF
<span> 在文档中定义一个区域(Defines a section in a document) 4.0 3.0 STF
头信息        
<head> 定语关于文档的信息(Defines information about the document) 3.0 3.0 STF
<title> 定义文档标题(Defines the document title) 3.0 3.0 STF
<meta> 定义背景资讯(Defines meta information) 3.0 3.0 STF
<base /> 基本文档中所有链接的基准(Defines a base URL for all the links in a page) 3.0 3.0 STF
<basefont /> 定义基本字体(Defines a base font) 3.0 3.0 TF
脚本、引用外部对象相关        
<script> 定义脚本(Defines a script) 3.0 3.0 STF
<noscript> 定义无脚本的显示区域(Defines a noscript section) 3.0 3.0 STF
<applet> 定义java程序(Defines an applet) 2.0 3.0 TF
<object> 定义内嵌对象(Defines an embedded object) ? 3.0 STF
<param> 定义对象的参数(Defines a parameter for an object) 3.0 3.0 STF

ps:我原打算整理一下关于xhtml tag的语义,发现这个表已经说得挺明确。随后我会补充一下!

Last update:2006-06-13 00:30

1. dl, dt, dd系列定义列表
dl就是“定义列表”。比如说词典里面的词的解释、定义就可以用这种列表。如:

<dl>
<dt>Dog</dt>
<dd>A carnivorous mammal of the family Canidae.</dd>
</dl>

2. citeq, 良好引用
在写blog的时候,经常是要引用一些blogger的话语,那么可以用cite标签。一般的blog程序后代自带的blockquote,是用来引用大段的话,还必须包含块级元素,比如div, p等等。而且blockquote也自带一个cite属性,可以以URI标注资料的来源。cite标签则主要用来引用某人的话,如:

<p>And <cite>Bob</cite> said <q>No, I think it's a banana</q>.</p>

3. dfn, 下定义

<p><dfn title="Microsoft web browser">Internet Explorer</dfn> is the most popular browser used underwater.</p>

4. ins, del, 插入和删除

知道del,就不要再用<s>做删除线了,用del显然更具有语义化。而且del还带有citedatetime来表明删除的原因以及删除的时间。ins是表示插入,也有这样的属性。如:
<p>It really was <ins cite="rarara.html" datetime="20031024">very</ins> good.</p>

5. code, 表示是计算机代码
本文所用到的标签,都用<code>和</code>包含了起来,表示是计算机代码。而默认情况下,这些代码会用打字体表示。

<code>p{margin:2px 0;}</code>


  • 上一篇文章: 没有了

  • 下一篇文章:
  • 相关文章