<dir> Tag. Not Supported in HTML5.


Definition and Usage

The <dir> tag is not supported in HTML5. Use the <ul> tag instead.

The <dir> tag was used to define a directory list.

 

<dfn>

See <code>

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.

<details>

The <details> tag is currently only supported in Chrome.


Definition and Usage

The <details> tag specifies additional details that the user can view  or hide on demand.

The <details> tag can used to create an interactive widget that the user can  open and close. Inside <details>, there can be put any sort of content.

The content of a <details> element should not be visible unless the open  attribute is set.


Differences Between HTML 4.01 and HTML5

The <details> tag is new in HTML5.


Tips and Notes

Tip: The <summary> tag is used to  specify a visible heading for the details. The heading can be clicked to  view/hide the details.


Attributes

New : New in HTML5.

AttributeValueDescription
open        New open Specifies that the details should be visible (open) to the user

Global Attributes

The <details> tag also supports the Global attributes in HTML5.


Event Attributes

The <details> tag also supports the Global Event Attributes in HTML5.

<del>

The <del> tag is supported in all major browsers.


Definition and Usage

The <del> tag defines a text that has been deleted from a document.

Tip: Also look at the <ins> tag to markup  inserted text.

Browsers will normally strike a line through deleted text and underline  inserted text.


Differences Between HTML 4.01 and HTML5

NONE


Tips and Notes

Tip: Use <del> together with <ins> to markup updates and modifications  in a document.


Attributes

AttributeValueDescription
cite URL Specifies a URL to a document that explains the reason why the text was deleted
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time of when the text was deleted

Global Attributes

The <del> tag also supports the Global attributes in HTML5.


Event Attributes

The <del> tag also supports the Global Event Attributes in HTML5.

<dd>

The <dd> tag is supported in all major browsers.


Definition and Usage

The <dd> tag is used to describe an item in a definition list.

The <dd> tag is used in conjunction with <dl>  (defines the definition list) and <dt> (defines the  item in the list).

Inside a <dd> tag you can put paragraphs, line breaks, images, links, lists,  etc.


Differences Between HTML 4.01 and HTML5

NONE.


Global Attributes

The <dd> tag also supports the Global attributes in HTML5


Event Attributes

The <dd> tag also supports the Global Event Attributes in HTML5.

<datalist>

The <datalist> tag is currently only supported in Firefox and Opera.


Definition and Usage

The <datalist> tag specifies a list of pre-defined options for an <input>  element.

The <datalist> tag is used to provide an "autocomplete" feature on <input>  elements. Users will see a drop-down list of pre-defined options as they input  data.

Use the <input> element's list attribute to bind it together with a <datalist>  element.


Differences Between HTML 4.01 and HTML5

The <datalist> tag is new in HTML5.


Global Attributes

The <datalist> tag also supports the Global attributes in HTML5.


Event Attributes

The <datalist> tag also supports the Global Event Attributes in HTML5

<command>

The <command> tag is currently only supported by Internet  Explorer 9.


Definition and Usage

The <command> tag defines a command (a radiobutton, a  checkbox, or a command button) that the user can invoke.

A command can be part of a context menu or toolbar, using the <menu> element,  or can be put anywhere else in the page, to define a keyboard shortcut.


Differences Between HTML 4.01 and HTML5

The <command> tag is new in HTML5.


Attributes

New : New in HTML5.

AttributeValueDescription
checked    New checked Specifies that the command should be checked when the page loads. Only for type="radio" or type="checkbox"
disabled     New disabled Specifies that the command should be disabled
icon         New URL Specifies an image that represents the command
label       New text Required. Specifies the name of the command, as shown to the user
radiogroup    New groupname Specifies the name of the group of commands that will  be toggled when the command itself is toggled. Only for type="radio"
type     New checkbox command radio Specifies the type of command

Global Attributes

The <command> tag also supports the Global attributes in HTML5.


Event Attributes

The <command> tag also supports the Global Event Attributes in HTML5.


<colgroup>

The <colgroup> tag is supported in all major browsers.


Definition and Usage

The <colgroup> tag specifies a group of one or more columns in a table for formatting.

The <colgroup> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.

Note: The <colgroup> tag must be a child of a <table> element,  after any <caption> elements and before any <thead>, <tbody>, <tfoot>, and <tr>  elements.

Tip: To define different properties to a column within a <colgroup>,  use the <col> tag within the <colgroup> tag.


Differences Between HTML 4.01 and HTML5

Most of the attributes from 4.01 are not supported in HTML5.


Attributes

AttributeValueDescription
align left       right       center       justify       char Not supported in HTML5
char character Not supported in HTML5
charoff number Not supported in HTML5
span number Defines the number of columns the <colgroup> should span
valign top       middle       bottom       baseline Not supported in HTML5
width %       pixels       relative_length Not supported in HTML5

Global Attributes

The <colgroup> tag also supports the Global attributes in HTML5.


Event Attributes

The <colgroup> tag also supports the Global Event Attributes in HTML5.

 <col>

The <col> tag is supported in all major browsers.


Definition and Usage

The <col> tag specifies column properties for each column within a <colgroup>  element.

The <col> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.


Differences Between HTML 4.01 and HTML5

Most of the attributes from 4.01 are not supported in HTML5.


Attributes

AttributeValueDescription
align left       right       center       justify       char Not supported in HTML5
char character Not supported in HTML5
charoff number Not supported in HTML5
span number Specifies the number of columns a <col> element should span
valign top       middle       bottom       baseline Not supported in HTML5
width %       pixels       relative_length Not supported in HTML5

Global Attributes

The <col> tag also supports the  Global attributes in HTML5.


Event Attributes

The <col> tag also supports the  Global Event Attributes in HTML5.

<code>

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are supported in all major browsers.


Definition and Usage

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.

TagDescription
<em> Renders as emphasized text
<strong> Defines important text
<dfn> Defines a definition term
<code> Defines a piece of computer code
<samp> Defines sample output from a computer program
<kbd> Defines keyboard input
<var> Defines a variable

Differences Between HTML 4.01 and HTML5

In HTML 4.01, the <strong> tag defines strong emphasized text, but in HTML5  it defines important text.


Global Attributes

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags also supports the Global attributes in HTML5


Event Attributes

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags also supports the Global Event Attributes in HTML5.