catest收录的关于在XHTML中能使用的内容标签列表
运行代码框
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>XHTML 1.0 中文参考</title>
<style type="text/css">
<!--
table {
border: 1px solid #000000;
width: 500px;
background: #FFFFFF;
color: #000000;
margin: auto;
font-size: 12px;
}
td {
height: 20px;
padding: 4px;
}
body {
background: #EAEAEA;
width: 778px;
margin: 10px auto;
padding: 10px;
font-family: Arial, Helvetica, sans-serif;
}
html {
background: #000000;
}
th {
padding: 4px;
height: 30px;
}
-->
</style>
</head>
<body>
<h1>XHTML 1.0 参考</h1>
<p>译自<a href="http://www.w3schools.com/xhtml/xhtml_ref_byfunc.asp">http://www.w3schools.com/xhtml/xhtml_ref_byfunc.asp</a></p>
<p>译者:拖鞋飞扬(catest)</p>
<hr />
<h2>按功能排列</h2>
<ul>
<li><b>NN</b>: 表明哪个早期Netscape版本支持这个标签</li>
<li><b>IE</b>: 表明哪个早期Internet Explorer版本支持这个标签 </li>
<li><b>DTD</b>: 表明符合XHTML 1.0 DTD 何级别的定义 . S=Strict(严格), T=Transitional(过渡), and F=Frameset(框架) </li>
</ul>
<table class="ex" cellspacing="0" width="100%" border="1">
<tbody>
<tr>
<th valign="top" align="left">开始标签</th>
<th align="left">用途(Purpose)</th>
<th align="left">NN</th>
<th align="left">IE</th>
<th align="left">DTD</th>
</tr>
<tr>
<td valign="top"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><b>基本标签</b></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><!DOCTYPE>?</td>
<td>文档类型(Defines the document type)</td>
<td> </td>
<td> </td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><html></td>
<td>html文档(Defines a html document)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><body></td>
<td>body元素(Defines the body element)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><h1> to <h6></td>
<td>标题1 -- 标题6(Defines header 1 to header 6)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><p></td>
<td>段落(Defines a paragraph)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><br /></td>
<td>换行(Inserts a single line break)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><hr /></td>
<td>水平线(Defines a horizontal rule)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><!--...--></td>
<td>注释(Defines a comment)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><b>Char Format</b></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><b></td>
<td>粗体文本(Defines bold text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><font></td>
<td valign="top">文字的外观,大小和颜色(Defines the font face, size, and color of text)</td>
<td valign="top">3.0</td>
<td valign="top">3.0</td>
<td valign="top">TF</td>
</tr>
<tr>
<td valign="top"><i></td>
<td>文本为斜体(Defines italic text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><em></td>
<td>文本为重要(Defines emphasized text)?</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><big></td>
<td>文本增大(Defines big text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><strong></td>
<td>文本为非常重要(Defines strong text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><small></td>
<td>文本缩小(Defines small text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><sup></td>
<td>文本上标(Defines superscripted text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><sub></td>
<td>文本下标(Defines subscripted text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><bdo></td>
<td>???(Defines the direction of text display)</td>
<td>6.2</td>
<td>5.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><u></td>
<td valign="top">文本下划线(Defines underlined text)</td>
<td valign="top">3.0</td>
<td valign="top">3.0</td>
<td valign="top">TF</td>
</tr>
<tr>
<td valign="top"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><b>输出</b></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><pre></td>
<td>预先格式(保留文件中空格的大小)(Defines preformatted text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><code></td>
<td>码(显示源码用)(Defines computer code text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><tt></td>
<td>打印机字体(Defines teletype text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><kbd></td>
<td>键盘(Defines keyboard text)</td>
<td>3.0</td>
<td>3.0</td>
<td>STF</td>
</tr>
<tr>
<td valign="top"><dfn></td>
<td>定义(Defines?a definition term)</td>