HTML 参考手册 HTML 有效DOCTYPES

2024-02-25 开发教程 HTML 参考手册 匿名 3

HTML 元素 - 有效 DOCTYPES

下面的表格列出了所有的 HTML5/HTML 4.01/XHTML 元素,以及它们会出现在什么文档类型 (!DOCTYPE) 中:

HTML 4.01 / XHTML 1.0
TagHTML5TransitionalStrictFramesetXHTML 1.1

<a>

YesYesYesYesYes

<abbr>

YesYesYesYesYes

<acronym>

No

YesYesYesYes

<address>

YesYesYesYesYes

<applet>

No

Yes

No

Yes

No

<area>

YesYesYesYes

No

<article>

Yes

No

No

No

No

<aside>

Yes

No

No

No

No

<audio>

Yes

No

No

No

No

<b>

YesYesYesYesYes

<base>

YesYesYesYesYes

<basefont>

No

Yes

No

Yes

No

<bdi>

Yes

No

No

No

No

<bdo>

YesYesYesYes

No

<big>

No

YesYesYesYes

<blockquote>

YesYesYesYesYes

<body>

YesYesYesYesYes

<br>

YesYesYesYesYes

<button>

YesYesYesYesYes

<canvas>

Yes

No

No

No

No

<caption>

YesYesYesYesYes

<center>

No

Yes

No

Yes

No

<cite>

YesYesYesYesYes

<code>

YesYesYesYesYes

<col>

YesYesYesYes

No

<colgroup>

YesYesYesYes

No

<command>

Yes

No

No

No

No

<datalist>

Yes

No

No

No

No

<dd>

YesYesYesYesYes

<del>

YesYesYesYes

No

<details>

Yes

No

No

No

No

<dfn>

YesYesYesYesYes

<dir>

No

Yes

No

Yes

No

<div>

YesYesYesYesYes

<dl>

YesYesYesYesYes

<dt>

YesYesYesYesYes

<em>

YesYesYesYesYes

<embed>

Yes

No

No

No

No

<fieldset>

YesYesYesYesYes

<figcaption>

Yes

No

No

No

No

<figure>

Yes

No

No

No

No

<font>

No

Yes

No

Yes

No

<footer>

Yes

No

No

No

No

<form>

YesYesYesYesYes

<frame>

No

No

No

Yes

No

<frameset>

No

No

No

Yes

No

<h1> to <h6>

YesYesYesYesYes

<head>

YesYesYesYesYes

<header>

Yes

No

No

No

No

<hgroup>

Yes

No

No

No

No

<hr>

YesYesYesYesYes

<html>

YesYesYesYesYes

<i>

YesYesYesYesYes

<iframe>

YesYes

No

Yes

No

<img>

YesYesYesYesYes

<input>

YesYesYesYesYes

<ins>

YesYesYesYes

No

<kbd>

YesYesYesYesYes

<keygen>

Yes

No

No

No

No

<label>

YesYesYesYesYes

<legend>

YesYesYesYesYes

<li>

YesYesYesYesYes

<link>

YesYesYesYesYes

<map>

YesYesYesYes

No

<mark>

Yes

No

No

No

No

<menu>

YesYes

No

Yes

No

<meta>

YesYesYesYesYes

<meter>

Yes

No

No

No

No

<nav>

Yes

No

No

No

No

<noframes>

No

Yes

No

Yes

No

<noscript>

YesYesYesYesYes

<object>

YesYesYesYesYes

<ol>

YesYesYesYesYes

<optgroup>

YesYesYesYesYes

<option>

YesYesYesYesYes

<output>

Yes

No

No

No

No

<p>

YesYesYesYesYes

<param>

YesYesYesYesYes

<pre>

YesYesYesYesYes

<progress>

Yes

No

No

No

No

<q>

YesYesYesYesYes

<rp>

Yes

No

No

No

No

<rt>

Yes

No

No

No

No

<ruby>

Yes

No

No

No

No

<s>

YesYes

No

Yes

No

<samp>

YesYesYesYesYes

<script>

YesYesYesYesYes

<section>

Yes

No

No

No

No

<select>

YesYesYesYesYes

<small>

YesYesYesYesYes

<source>

Yes

No

No

No

No

<span>

YesYesYesYesYes

<strike>

No

Yes

No

Yes

No

<strong>

YesYesYesYesYes

<style>

YesYesYesYesYes

<sub>

YesYesYesYesYes

<summary>

Yes

No

No

No

No

<sup>

YesYesYesYesYes

<table>

YesYesYesYesYes

<tbody>

YesYesYesYes

No

<td>

YesYesYesYesYes

<textarea>

YesYesYesYesYes

<tfoot>

YesYesYesYes

No

<th>

YesYesYesYesYes

<thead>

YesYesYesYes

No

<time>

Yes

No

No

No

No

<title>

YesYesYesYesYes

<tr>

YesYesYesYesYes

<track>

Yes

No

No

No

No

<tt>

No

YesYesYesYes

<u>

No

Yes

No

Yes

No

<ul>

YesYesYesYesYes

<var>

YesYesYesYesYes

<video>

Yes

No

No

No

No

<wbr>

Yes

No

No

No

No