Thursday, 22 December 2011

HTML5/HTML 4.01/XHTML Elements and Valid DTDs


The table below lists all HTML5/HTML 4.01/XHTML elements, and shows what Doctype (DTD) each element appears in.
TagHTML5HTML 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
<h1> to <h6>YesYesYesYesYes
<head>YesYesYesYesYes
<header>YesNoNoNoNo
<hgroup>YesNoNoNoNo
<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

No comments:

Post a Comment