A simple HTML table, containing two columns and two rows:
The <table> tag defines an HTML table.
A simple 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.
The <table> tag is supported in all major browsers.
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
The <table> tag supports the following standard attributes:
More information about Standard Attributes.
The <table> tag supports the following event attributes:
More information about Event Attributes.
Tags inside a tableHow to display elements inside other elements.
Cells 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!