Main /

Html Table Elements

Wiki_System*

technolowiki.org

[-edit SideBar-]

Html Table Elements

HTML TABLE Elements

HTML v4

NameTypeChild ofAttributesEnd Tag?DescriptionReplacement
TABLEblockBODY *align, border, cellpadding, cellspacing, valign, width (frame, rules, summary) 
CAPTIONalign table caption
COLGROUPgroupingalign, span, width (char, charoff)Opttable column group
COLCOLGROUPalign, span, width (char, charoff)Notable column
THEADgroupingOpttable header
THTABLE, THEADalign, colspan, headers, rowspan, scope, valign (abbr, axis, nowrap)Opttable header cell
TBODYgroupingOpttable body
TRTABLE, TBODYalign, valignOpttable row
TDTR (TH)align, colspan, height, rowspan, valign, width (nowrap, scope)Opttable data cell
TFOOTgroupingOpttable footer

HTML v5

Attributes "align", "valign" are stripped from all elements. They say you should use CSS for that.

NameTypeChild ofAttributesEnd Tag?DescriptionReplacement
TABLEblockBODY *-- all attributes dropped.
CAPTIONalign table caption
COLGROUPgroupingspanOpttable column groupattributes "char", "charoff" and "width" are being dropped.
COLCOLGROUPspanNotable columnattributes "char", "charoff" and "width" are being dropped.
THEADgroupingOpttable header
THTABLE, THEADcolspan, headers, rowspan, scopeOpttable header cellattributes "abbr" and "axis" are being dropped.
TBODYgroupingOpttable body
TRTABLE, TBODYOpttable row
TDTRcolspan, rowspanOpttable data cell"height", "scope" and "width" attributes are being dropped. TD is no longer allowed in THEAD
TFOOTgroupingOpttable footer
Recent Changes (All) | Edit SideBar Page last modified on March 27, 2010, at 05:36 PM Edit Page | Page History
Powered by TechnoloWiki