W3C HTML 网页标准教程

HTML 元素与 DTD

按功能类别排列

下面的表格列出了所有的 HTML/XHTML 元素,并定义了每个元素可以出现在哪种文档类型声明 (DTD) 中 。

标签 HTML 4.01 / XHTML 1.0 XHTML 1.1
Transitional Strict Frameset
<a> Yes Yes Yes Yes
<abbr> Yes Yes Yes Yes
<acronym> Yes Yes Yes Yes
<address> Yes Yes Yes Yes
<applet> Yes No Yes No
<area /> Yes Yes Yes No
<b> Yes Yes Yes Yes
<base /> Yes Yes Yes Yes
<basefont /> Yes No Yes No
<bdo> Yes Yes Yes No
<big> Yes Yes Yes Yes
<blockquote> Yes Yes Yes Yes
<body> Yes Yes Yes Yes
<br /> Yes Yes Yes Yes
<button> Yes Yes Yes Yes
<caption> Yes Yes Yes Yes
<center> Yes No Yes No
<cite> Yes Yes Yes Yes
<code> Yes Yes Yes Yes
<col /> Yes Yes Yes No
<colgroup> Yes Yes Yes No
<dd> Yes Yes Yes Yes
<del> Yes Yes Yes No
<dfn> Yes Yes Yes Yes
<dir> Yes No Yes No
<div> Yes Yes Yes Yes
<dl> Yes Yes Yes Yes
<dt> Yes Yes Yes Yes
<em> Yes Yes Yes Yes
<fieldset> Yes Yes Yes Yes
<font> Yes No Yes No
<form> Yes Yes Yes Yes
<frame /> No No Yes No
<frameset> No No Yes No
<h1> to <h6> Yes Yes Yes Yes
<head> Yes Yes Yes Yes
<hr /> Yes Yes Yes Yes
<html> Yes Yes Yes Yes
<i> Yes Yes Yes Yes
<iframe> Yes No Yes No
<img /> Yes Yes Yes Yes
<input /> Yes Yes Yes Yes
<ins> Yes Yes Yes No
<isindex> Yes No Yes No
<kbd> Yes Yes Yes Yes
<label> Yes Yes Yes Yes
<legend> Yes Yes Yes Yes
<li> Yes Yes Yes Yes
<link /> Yes Yes Yes Yes
<map> Yes Yes Yes No
<menu> Yes No Yes No
<meta /> Yes Yes Yes Yes
<noframes> Yes No Yes No
<noscript> Yes Yes Yes Yes
<object> Yes Yes Yes Yes
<ol> Yes Yes Yes Yes
<optgroup> Yes Yes Yes Yes
<option> Yes Yes Yes Yes
<p> Yes Yes Yes Yes
<param /> Yes Yes Yes Yes
<pre> Yes Yes Yes Yes
<q> Yes Yes Yes Yes
<s> Yes No Yes No
<samp> Yes Yes Yes Yes
<script> Yes Yes Yes Yes
<select> Yes Yes Yes Yes
<small> Yes Yes Yes Yes
<span> Yes Yes Yes Yes
<strike> Yes No Yes No
<strong> Yes Yes Yes Yes
<style> Yes Yes Yes Yes
<sub> Yes Yes Yes Yes
<sup> Yes Yes Yes Yes
<table> Yes Yes Yes Yes
<tbody> Yes Yes Yes No
<td> Yes Yes Yes Yes
<textarea> Yes Yes Yes Yes
<tfoot> Yes Yes Yes No
<th> Yes Yes Yes Yes
<thead> Yes Yes Yes No
<title> Yes Yes Yes Yes
<tr> Yes Yes Yes Yes
<tt> Yes Yes Yes Yes
<u> Yes No Yes No
<ul> Yes Yes Yes Yes
<var> Yes Yes Yes Yes

注释:“文档类型声明”的英文译文是 doctype declaration。