A simple HTML table, containing two columns and two rows:
The <th> tag defines a header cell in an HTML table.
An HTML table has two kinds of cells:
The text in a th element is bold and centered.
The text in a td element is regular and left-aligned.
The <th> tag is supported in all major browsers.
Hint: Use the colspan and rowspan attributes to let the content span over multiple columns
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the
attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
The <th> tag supports the following standard attributes:
More information about Standard Attributes.
The <th> tag supports the following event attributes:
More information about Event Attributes.
Tags inside a tableHow
to display elements inside other elements.
that span more than one row/columnHow to define table cells that span more than one row
or one column.
CellpaddingHow to use
cellpadding to create more white space between the cell content and its borders.
CellspacingHow to use
cellspacing to increase the distance between the cells.
The Frame 1ttributeHow to
use the "frame" attribute to control the borders around the table.
Your Query was successfully sent!