CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: <th> element

The <th> Element

Table Content

The <th> element represents a header cell in a table. For a data cell, use the <td> element. Place table cells like <td> and <th> in rows using a <tr> element for each table row.

Attributes for <th>
TypeAttribute List
'Standard' Attributes"abbr", "colspan", "headers", "rowspan", and "scope"
New HTML5 Attributes"writingsuggestions"
Obsolete Attributes"align", "axis", "background", "bgcolor", "char", "charoff", "height", "nowrap", "valign", and "width"

Recommended Links

Accessibility Information & Tips

  • Use the <table> element and other table elements (<tr>, <th>, <td>, etc.) to present tabular information. This preserves data relationships even when users cannot see the table or the presentation format is changed. Do not use tabs or spacing to create visual presentations of columns. Visit https://www.w3.org/TR/WCAG20-TECHS/H51 for more information.

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem