<tfoot>

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


Definition and Usage

The <tfoot> tag is used to group footer content in an HTML table.

The <tfoot> element is used in conjunction with the <thead> and <tbody> elements to specify each part of a table (footer, header, body).

Browsers can use these elements to enable scrolling of the table body  independently of the header and footer. Also, when printing a large table that  spans multiple pages, these elements can enable the table header and footer to  be printed at the top and bottom of each page.

The <tfoot> tag must be used in the following context: As a child of a < table> element, after any <caption>, <colgroup>, and <thead> elements and  before any <tbody> and <tr> elements.

Note: <tfoot> must appear before <tbody> within a table, so that a browser can  render the foot before receiving all the rows of data.


Differences Between HTML 4.01 and HTML5

None of the HTML 4.01 attributes are supported in HTML5.


Tips and Notes

Note: The <tfoot> element must have one or more <tr> tags  inside.

Tip: The <thead>, <tbody>, and <tfoot> elements will not affect the layout of the table by default.  However, you can use CSS to let these elements affect the table's layout.


Attributes

AttributeValueDescription
align right left center justify char Not supported in HTML5
char character Not supported in HTML5
charoff number Not supported in HTML5
valign top middle bottom baseline Not supported in HTML5

Global Attributes

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


Event Attributes

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

<textarea>

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


Definition and Usage

The <textarea> tag defines a multi-line text input control.

A text area can hold an unlimited number of characters, and the text renders in  a fixed-width font (usually Courier).

The size of a text area can be specified by the cols and rows attributes, or even  better; through CSS' height and width properties.


Differences Between HTML 4.01 and HTML5

HTML5 has some new attributes: autofocus, form, maxlength, placeholder,  required, and wrap.


Attributes

New : New in HTML5.

AttributeValueDescription
autofocus    New autofocus Specifies that a text area should automatically get focus when the page loads
cols number Specifies the visible width of a text area
disabled disabled Specifies that a text area should be disabled
form    New form_id Specifies one or more forms the text area belongs to
maxlength   New number Specifies the maximum number of characters allowed in the text area
name text Specifies a name for the text area
placeholder   New text Specifies a short hint that describes the expected value of a text area
readonly readonly Specifies that a text area should be read-only
required    New required Specifies that a text area is required/must be filled out
rows number Specifies the visible number of lines in a text area
wrap    New hard soft Specifies how the text in a text area is to be wrapped when submitted in a form

Global Attributes

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


Event Attributes

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

 <td>

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


Definition and Usage

The <td> tag defines a standard cell in an HTML table.

An HTML table has two kinds of cells:

  • Header cells - contains header information (created with the <th> element)
  • Standard cells - contains data (created with the <td> element)

The text in <th> elements are bold and centered by default.

The text in <td> elements are regular and left-aligned by default.


Differences Between HTML 4.01 and HTML5

Some HTML 4.01 attributes are not  supported in HTML5.


Tips and Notes:

Note: The <td> element is not allowed in the <thead> element.


Attributes

AttributeValueDescription
abbr text Not supported in HTML5
align left right center justify char Not supported in HTML5
axis category_name Not supported in HTML5
char character Not supported in HTML5
charoff number Not supported in HTML5
colspan number Specifies the number of columns a cell should span
headers header_id Specifies one or more header cells a cell is related to
height pixels % Not supported in HTML5
nowrap nowrap Not supported in HTML5
rowspan number Specifies the number of rows a cell should span
scope col colgroup row rowgroup Not supported in HTML5
valign top middle bottom baseline Not supported in HTML5
width pixels % Not supported in HTML5

Global Attributes

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


Event Attributes

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


<tbody>

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


Definition and Usage

The <tbody> tag is used to group the body content in an HTML table.

The <tbody> element is used in conjunction with the <thead> and <tfoot>  elements to specify each part of a table (body, header, footer).

Browsers can use these elements to enable scrolling of the table body  independently of the header and footer. Also, when printing a large table that  spans multiple pages, these elements can enable the table header and footer to  be printed at the top and bottom of each page.

The <tbody> tag must be used in the following context: As a child of a < table> element, after any <caption>, <colgroup>, and <thead> elements.


Differences Between HTML 4.01 and HTML5

None of the HTML 4.01 attributes are supported in HTML5.


Tips and Notes

Note: The <tbody> element must have one or more <tr> tags  inside.

Tip: The <thead>, <tbody>, and <tfoot> elements will not affect the layout of the table by default.  However, you can use CSS to let these elements affect the table's layout.


Attributes

AttributeValueDescription
align right left center justify char Not supported in HTML5
char character Not supported in HTML5
charoff number Not supported in HTML5
valign top middle bottom baseline Not supported in HTML5

Global Attributes

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


Event Attributes

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

<table>

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


Definition and Usage

The <table> tag defines an HTML table.

An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements.

The <tr> element defines a table row, the <th> element defines a table header, and  the <td> element defines a table cell.

A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, < tfoot>,  and <tbody> elements.


Differences Between HTML 4.01 and HTML5

Only the "border" attribute is supported in HTML5, and it only allows the values "" or "1".


Attributes

AttributeValueDescription
border "" 1 Specifies whether the table cells should have borders or not
cellpadding pixels Not supported in HTML5
cellspacing pixels Not supported in HTML5
frame void above below hsides lhs rhs vsides box border Not supported in HTML5
rules none groups rows cols all Not supported in HTML5
summary text Not supported in HTML5
width pixels % Not supported in HTML5

Global Attributes

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


Event Attributes

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

<sup>

The <sub> and <sup> tags are supported in all major browsers.


Definition and Usage

The <sub> tag defines subscript text. Subscript text appears half a character  below the baseline. Subscript text can be used for chemical formulas, like H2O.

The <sup> tag defines superscript text. Superscript text appears half a character above the baseline. Superscript text can be used for footnotes, like WWW[1].


Differences Between HTML 4.01 and HTML5

NONE


Global Attributes

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


Event Attributes

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

<summary>

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


Definition and Usage

The <summary> tag defines a visible heading for the <details> element. The heading can be clicked to  view/hide the details.


Differences Between HTML 4.01 and HTML5

The <summary> tag is new in HTML5.


Tips and Notes

Note: The <summary> element should be the first child element of the < details> element.


Global Attributes

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


Event Attributes

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

 <sub>

The <sub> and <sup> tags are supported in all major browsers.


Definition and Usage

The <sub> tag defines subscript text. Subscript text appears half a character  below the baseline. Subscript text can be used for chemical formulas, like H2O.

The <sup> tag defines superscript text. Superscript text appears half a character above the baseline. Superscript text can be used for footnotes, like WWW[1].


Differences Between HTML 4.01 and HTML5

NONE


Global Attributes

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


Event Attributes

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

 <style>

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


Definition and Usage

The <style> tag is used to define style information for an HTML document.

Inside the <style> element you specify how HTML elements should render in a  browser.

Each HTML document can contain multiple <style> tags.


Differences Between HTML 4.01 and HTML5

The "scoped" attribute is new in HTML5, which allows to define styles for  a specified section of the document. If the "scoped" attribute is present, the styles only apply to the style  element's parent element and that element's child elements.


Tips and Notes

Tip: To link to an external style sheet, use the <link> tag.

Note: If the "scoped" attribute is not used, each <style> tag must be  located in the head section.


Attributes

New : New in HTML5.

AttributeValueDescription
type text/css Specifies the MIME type of the style sheet
media media_query Specifies what media/device the media resource is optimized for. Default value: all.
scoped       New scoped Specifies that the styles only apply to this element's parent element and that element's child elements

Global Attributes

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


Event Attributes

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

<strong>

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.