ATTENTION: XML WEB PAGES NOT SUPPORTED If you see this message, your current browser does not support the 1999 XSLT 1.0 (or later) standard for XML web pages such as this one. Please upgrade your browser to a newer version that supports 1999 or later standards such as: Mozilla Firefox version 1.0.2 or later (GetFirefox -> http://www.GetFirefox.com/) Netscape version 8 or later Safari version 1.3 or later Opera version 9 or later Microsoft Internet Explorer (MSIE) version 5 or later For further assistance, contact the software vendor for your browser. To go to the XHTML version of this page click the following link: index.html
A great quick reference for the transition from HTML 4 to HTML 5. Designed to help authors create polyglot HTML documents, this can also help in creating HTML 4 and XHTML documents, in addition to upgrading to HTML 5. Most HTML cheat sheets, usually based on the technical specifications for a specific version of HTML, show only the valid features in that version of the HTML specs. In contrast, this one helps developers transition from earlier versions of HTML by indicating new features in HTML 5 with a "New" flag and using a strike-through font to indicate the tags and attributes previously used in HTML 4, XHTML 1 and earlier versions that are now obsolete in HTML 5.
For a quick reference of HTML character entities, see the HTML character codes reference.
Required or recommended HTML attributes for the HTML tags are shown in bold.
Definition: Polyglot HTML Documents: HTML documents that can be parsed as either text/html or as an XML type such as application/xhtml+xml.
<p>...</p> <p>... <P>...</P>
<tr><td>...</td></tr> <tr><td>...</tr></td>
<br/> <br>
<hr/> <hr>
<img src="example.png" alt="example"/>
<img src="example.png" alt="example">
<abbr title="Hypertext Markup Language">HTML</abbr>
<a href=http://www.ExampleOnly.com/> <!-- ambiguous -->
<a href="http://www.ExampleOnly.com/"> <!-- / is part of URL -->
<p id=back-to-top>
<p id="back-to-top">
<table width="100%">
<table style="width: 100%">
<table class="wide">
<option selected="selected"/>
<option selected/>
<option selected=""/>
<option selected="true"/>
<option selected="yes"/>
title
attributeA <dfn title="short for weblog">blog</dfn> is an online journal.
A <dfn title="blog">blog or weblog</dfn> is an online journal.
A <dfn>blog</dfn>, short for <dfn>weblog</dfn>, is an online journal.
title
from an <abbr> tag that is its only content<dfn><abbr title="National Association for Stock Car Auto Racing">NASCAR</abbr></dfn> sanctions many different motor races
title
on <dfn> when expanding acronyms<dfn title="TLA"><abbr title="Three Letter Acronym">TLA</abbr></dfn> stands for "Three Letter Acronym"