Did you find this useful?
Socialize it today.


HTML / XHTML Elements and DTD

Wednesday, February 01, 2012

Elements are the core of an HTML document. Here is a complete listing of elements from the HTML / XHTML modern specifications. Some of the elements listed below have been deprecated and are not included in the HTML / XTHML specification. Depending on the HTML  / XHTML  Doctype (DTD - Strict, Transitional, or Frameset), some elements may or may not be supported. It is recommended that you not use HTML elements that are deprecated because they may become obsolete in future versions of browsers. Developing your pages in XHTML with a strict Doctype will ensure the most compatibility across browsers.

You can practice your HTML skills by using our online HTML Editor.

ElementDescriptionHTML 4.01 / XHTML 1.0XHTML 1.1HTML 5
<!--...-->Defines a commentSTFYesYes
<!DOCTYPE>Defines the document typeSTFYesYes
<a>Defines an anchor/linkSTFYesYes
<abbr>Defines an abbreviationSTFYesYes
<acronym>Defines an acronymSTFYesNo
<address>Defines contact information for the author of a documentSTFYesYes
<applet>Deprecated. Defines an embedded appletTFNoNo
<area />Defines an area inside an image-mapSTFNoYes
<article>Specifies independent, self-contained content.NoNoYes
<aside>For content aside from the content it is placed in.NoNoYes
<audio>Multimedia content, sounds, music or other audio streamsNoNoYes
<b>Defines bold textSTFYesYes
<base />Specifies the base URL/target for all relative URLs in a documentSTFYesYes
<basefont />Deprecated. Sets a default color, size, or font for the text in a docTFNoNo
<bdi>Text that should not be bound to the text-direction of its parent elementsNoNoYes
<bdo>Overrides the current text directionSTFNoYes
<big>Defines big textSTFYesNo
<blockquote>Defines a long quotationSTFYesYes
<body>Defines the document’s bodySTFYesYes
<br />Defines a line breakSTFYesYes
<button>Defines a buttonSTFYesYes
<canvas>For making graphics with a scriptNoNoYes
<caption>Defines a table captionSTFYesYes
<center>Deprecated. Defines centered textTFNoNo
<cite>Defines a citationSTFYesYes
<code>Defines codeSTFYesYes
<col />Defines attribute values for one or more columns in a table STFNoYes
<colgroup>Specifies a group of one or more columns in a table for formattingSTFNoYes
<command>A button, or a radiobutton, or a checkboxNoNoYes
<datalist>A list of options for input valuesNoNoYes
<dd>Defines a description of an item in a definition listSTFYesYes
<del>Defines text that has been deleted from a documentSTFYesYes
<details>For describing details about a document, or parts of a documentNoNoYes
<dfn>Defines a definition termSTFYesYes
<dir>Deprecated. Defines a directory listTFNoNo
<div>Defines a section in a documentSTFYesYes
<dl>Defines a definition listSTFYesYes
<dt>Defines a term in a definition listSTFYesYes
<em>Defines emphasized text STFYesYes
<embed>Embedded content, such as a plug-inNoNoYes
<fieldset>Groups related elements in a formSTFYesYes
<figcaption>The caption of the figure sectionNoNoYes
<figure>Grouping a section of stand-alone contentNoNoYes
<font>Deprecated. Defines font, color, and size for textTFNoNo
<footer>Footer of a document or sectionNoNoYes
<form>Defines a form for inputSTFYesYes
<frame />Defines a frame in a framesetFNoNo
<frameset>Defines a set of framesFNoNo
<h1> to <h6>Defines headingsSTFYesYes
<head>Defines information about the documentSTFYesYes
<header>Introduction of a document or sectionNoNoYes
<hgroup>For a section of headingsNoNoYes
<hr />Defines a horizontal lineSTFYesYes
<html>Defines the root of an HTML documentSTFYesYes
<i>Defines italic textSTFYesYes
<iframe>Defines an inline frameTFNoYes
<img />Defines an imageSTFYesYes
<input />Defines an input controlSTFYesYes
<ins>Defines text that has been inserted into a documentSTFYesYes
<isindex>Deprecated. Adds a search field.NoNoNo
<keygen>Generate keys to authenticate usersNoNoYes
<kbd>Defines keyboard inputSTFYesYes
<label>Defines a label for an <input> elementSTFYesYes
<legend>Defines a caption for a <fieldset> elementSTFYesYes
<li>Defines a list itemSTFYesYes
<link />Relationship between a document and an external resourceSTFYesYes
<map>Defines a client side image map STFNoYes
<mark>Text that should be highlightedNoNoYes
<menu>Deprecated. Defines a menu listTFNoYes
<meta />Defines metadata about an HTML documentSTFYesYes
<meter>For a measurementNoNoYes
<nav>A section of navigationNoNoYes
<noframes>Defines an alternate content for users that do not support framesTFNoNo
<noscript>Alternate content for users that do not support client-side scriptsSTFYesYes
<object>Defines an embedded objectSTFYesYes
<ol>Defines an ordered listSTFYesYes
<optgroup>Defines a group of related options in a dropdown listSTFYesYes
<option>Defines an option in a dropdown listSTFYesYes
<output>Different types of outputNoNoYes
<p>Defines a paragraphSTFYesYes
<param />Defines a parameter for an objectSTFYesYes
<pre>Defines preformatted textSTFYesYes
<progress>State of a work in progressNoNoYes
<q>Defines a short quotationSTFYesYes
<rp>Alternate information for non support of the ruby elementNoNoYes
<rt>Explanation of the ruby annotation;NoNoYes
<ruby>Ruby annotationNoNoYes
<s>Deprecated. Defines strikethrough textTFNoYes
<samp>Defines sample output from a computer programSTFYesYes
<script>Defines a client side scriptSTFYesYes
<section>Section in a documentNoNoYes
<select>Defines a dropdown listSTFYesYes
<small>Defines smaller textSTFYesYes
<source>Media resources for media elementsNoNoYes
<span>Defines a section in a documentSTFYesYes
<strike>Deprecated. Defines strikethrough textTFNoNo
<strong>Defines strong textSTFYesYes
<style>Defines style information for a documentSTFYesYes
<sub>Defines subscripted textSTFYesYes
<summary>Caption inside the details elementNoNoYes
<sup>Defines superscripted textSTFYesYes
<table>Defines a tableSTFYesYes
<tbody>Groups the body content in a tableSTFNoYes
<td>Defines a cell in a tableSTFYesYes
<textarea>Defines a multiline input control (text area)STFYesYes
<tfoot>Groups the footer content in a tableSTFNoYes
<th>Defines a header cell in a tableSTFYesYes
<thead>Groups the header content in a tableSTFNoYes
<time>Defining a time and/or a dateNoNoYes
<title>Defines a title for the documentSTFYesYes
<tr>Defines a row in a tableSTFYesYes
<track>Tracks used in mediaplayersNoNoYes
<tt>Defines teletype textSTFYesNo
<u>Deprecated. Defines underlined text. Different element in HTML5TFNoYes
<ul>Defines an unordered listSTFYesYes
<var>Defines a variableSTFYesYes
<video>Video contentNoNoYes
<wbr>Word breakNoNoYes

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

Creating Web Pages Simplified HTML CSS: The Complete Reference HTML CSS and JavaScript Editor