Version-//W3C//DTD XHTML 1.0 Strict//EN
Elementth
Purposetable header cell
DescriptionThis element is a table header cell. It is contained in a table row (tr) which is contained in a table.
Start tagRequired <th>
Attributes
NameTypeDefaultComment
abbr CDATA #IMPLIEDtext used for titles; abbreviation for header cell
align( left | center | right | justify | char )#IMPLIEDhorizontal alignment of cell contents
axis CDATA #IMPLIEDcomma-separated list of related headers
char CDATA #IMPLIEDalignment char, e.g. char=':'; a single character as per XML specification which defines a character as an atomic unit of text as specified by ISO/IEC 10646 [ISO/IEC 10646] (see also [ISO/IEC 10646-2000])
charoff CDATA #IMPLIEDoffset for alignment char; nn for pixels or nn% for percentage length; horizontal alignment in cells
class CDATA #IMPLIEDspace-separated list of classes
colspan CDATA "1"one or more digits; number of cols spanned by cell
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
headersIDREFS#IMPLIEDlist of id's for header cells
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
rowspan CDATA "1"one or more digits; number of rows spanned by cell
scope( row | col | rowgroup | colgroup )#IMPLIEDscope covered by header cells
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
valign( top | middle | bottom | baseline )#IMPLIEDvertical alignment attributes for cell contents; vertical alignment in cells
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( #PCDATA | p | h1 | h2 | h3 | h4 | h5 | h6 | div | ul | ol | dl | pre | hr | blockquote | address | fieldset | table | form | a | br | span | bdo | map | object | img | tt | i | b | big | small | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | noscript | ins | del | script )*
End tagRequired </th>
Referenced in tr
Example
SourceAppearance
<table border="3" cellpadding="6" cellspacing="1" align="center">
<caption>The XHTML Playoffs</caption>
<tr>
<th>Game</th>
<th>Entities</th>
<th>Elements</th></tr>
<tr>
<td>1</td>
<td>3</td>
<td>2</td></tr>
<tr>
<td>2</td>
<td>4</td>
<td>1</td></tr>
<tr>
<td>3</td>
<td>0</td>
<td>8</td></tr>
<tr>
<td>4</td>
<td>8</td>
<td>7</td></tr>
<tr>
<td>5</td>
<td>2</td>
<td>1</td></tr></table>
<table border="1" align="center">
<caption align="bottom">Weekly Schedule</caption>
<tr>
<th rowspan="2">Tasks</th>
<th colspan="7">Days of the Week</th></tr>
<tr>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
<th>Sun</th></tr>
<tr>
<th>School</th>
<td>&nbsp;</td>
<td>CS111</td>
<td>&nbsp;</td>
<td>CS111</td>
<td>&nbsp;</td>
<td colspan="2" rowspan="2">Off</td></tr>
<tr>
<th>Work</th>
<td colspan="2">december.com</td>
<td colspan="3">Weekend Prep</td></tr></table>
The XHTML Playoffs
Game Entities Elements
1 3 2
2 4 1
3 0 8
4 8 7
5 2 1
Weekly Schedule
Tasks Days of the Week
Mon Tue Wed Thu Fri Sat Sun
School   CS111   CS111   Off
Work december.com Weekend Prep
search Search · star Market
2023-06-19 · John December · Terms © johndecember.com