HTML5/HTML 4.01/XHTML 元素和有效的文档类型(DTD)

原创 小智  2020-11-29 20:06  阅读 1,958 次

HTML5/HTML 4.01/XHTML 元素和有效的文档类型( DTD )

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

标签HTML5HTML 4.01 / XHTML 1.0XHTML 1.1
TransitionalStrictFrameset
<a>YesYesYesYesYes
<abbr>YesYesYesYesYes
<acronym>NoYesYesYesYes
<address>YesYesYesYesYes
<applet>NoYesNoYesNo
<area>YesYesYesYesNo
<article>YesNoNoNoNo
<aside>YesNoNoNoNo
<audio>YesNoNoNoNo
<b>YesYesYesYesYes
<base>YesYesYesYesYes
<basefont>NoYesNoYesNo
<bdi>YesNoNoNoNo
<bdo>YesYesYesYesNo
<big>NoYesYesYesYes
<blockquote>YesYesYesYesYes
<body>YesYesYesYesYes
<br>YesYesYesYesYes
<button>YesYesYesYesYes
<canvas>YesNoNoNoNo
<caption>YesYesYesYesYes
<center>NoYesNoYesNo
<cite>YesYesYesYesYes
<code>YesYesYesYesYes
<col>YesYesYesYesNo
<colgroup>YesYesYesYesNo
<command>YesNoNoNoNo
<datalist>YesNoNoNoNo
<dd>YesYesYesYesYes
<del>YesYesYesYesNo
<details>YesNoNoNoNo
<dfn>YesYesYesYesYes
<dir>NoYesNoYesNo
<div>YesYesYesYesYes
<dl>YesYesYesYesYes
<dt>YesYesYesYesYes
<em>YesYesYesYesYes
<embed>YesNoNoNoNo
<fieldset>YesYesYesYesYes
<figcaption>YesNoNoNoNo
<figure>YesNoNoNoNo
<font>NoYesNoYesNo
<footer>YesNoNoNoNo
<form>YesYesYesYesYes
<frame>NoNoNoYesNo
<frameset>NoNoNoYesNo
<head>YesYesYesYesYes
<header>YesNoNoNoNo
<h1> to <h6>YesYesYesYesYes
<hr>YesYesYesYesYes
<html>YesYesYesYesYes
<i>YesYesYesYesYes
<iframe>YesYesNoYesNo
<img>YesYesYesYesYes
<input>YesYesYesYesYes
<ins>YesYesYesYesNo
<keygen>YesNoNoNoNo
<kbd>YesYesYesYesYes
<label>YesYesYesYesYes
<legend>YesYesYesYesYes
<li>YesYesYesYesYes
<link>YesYesYesYesYes
<map>YesYesYesYesNo
<mark>YesNoNoNoNo
<menu>YesYesNoYesNo
<meta>YesYesYesYesYes
<meter>YesNoNoNoNo
<nav>YesNoNoNoNo
<noframes>NoYesNoYesNo
<noscript>YesYesYesYesYes
<object>YesYesYesYesYes
<ol>YesYesYesYesYes
<optgroup>YesYesYesYesYes
<option>YesYesYesYesYes
<output>YesNoNoNoNo
<p>YesYesYesYesYes
<param>YesYesYesYesYes
<pre>YesYesYesYesYes
<progress>YesNoNoNoNo
<q>YesYesYesYesYes
<rp>YesNoNoNoNo
<rt>YesNoNoNoNo
<ruby>YesNoNoNoNo
<s>YesYesNoYesNo
<samp>YesYesYesYesYes
<script>YesYesYesYesYes
<section>YesNoNoNoNo
<select>YesYesYesYesYes
<small>YesYesYesYesYes
<source>YesNoNoNoNo
<span>YesYesYesYesYes
<strike>NoYesNoYesNo
<strong>YesYesYesYesYes
<style>YesYesYesYesYes
<sub>YesYesYesYesYes
<summary>YesNoNoNoNo
<sup>YesYesYesYesYes
<table>YesYesYesYesYes
<tbody>YesYesYesYesNo
<td>YesYesYesYesYes
<textarea>YesYesYesYesYes
<tfoot>YesYesYesYesNo
<th>YesYesYesYesYes
<thead>YesYesYesYesNo
<time>YesNoNoNoNo
<title>YesYesYesYesYes
<tr>YesYesYesYesYes
<track>YesNoNoNoNo
<tt>NoYesYesYesYes
<u>NoYesNoYesNo
<ul>YesYesYesYesYes
<var>YesYesYesYesYes
<video>YesNoNoNoNo
<wbr>YesNoNoNoNo
本文地址:http://aszhi.com/jishu/html/73.html
关注我们:请关注一下微信号:扫描二维码爱思智前端的微信号
版权声明:本文为原创文章,版权归 小智 所有,欢迎分享本文,转载请保留出处!

发表评论


表情