html table reference

table element

tag

name

description

<table> table The <table> tag defines an HTML table.
<caption> table caption The <caption> tag defines a table caption. It must be inserted immediately after the <table> tag.
<colgroup> column group The <colgroup> tag specifies a group of one or more columns in a table for formatting.
<thead> table head The <thead> tag is used to group header content in an HTML table.
<th> table header The <th> tag defines a header cell in an HTML table.
<tbody> table body The <tbody> tag is used to group the body content in an HTML table.
<tr> table row The <tr> element defines a table row.
<td> table data cell The <td> tag defines a standard data cell in an HTML table.
<tfoot> table foot The <tfoot> tag is used to group footer content in an HTML table.

table attribute

attribute

name

description

<td rowspan=?> rowspan attribute The <td rowspan=?> specifies the number of rows a cell should span.
<td colspan=?> colspan attribute The <td colspan=?> is used to set the number of columns a cell should span in a table.
<th width=?> width attribute The <th width=?> Attribute is used to specify the width of a table header cell.
<tr align=?> align attribute align Attribute is used to set the horizontal alignment of text content inside the table row.
<tr vertical-align="value"?> tr vertical align vertical-align Attribute is used to specify the vertical alignment of text content in a table row
<table border=?> table border The border attribute adds a border of different styles and shapes to the table.
<table cellspacing=?> table cellspacing The border attribute adds a border of different styles and shapes to the table.
<table cellpadding="value"?> table cellpadding The cellpadding is the space between the border of a table and its content.
<>