description & Usage
To create a content table in html, we use the <table> tag.
The table tag should have related elements such as: <th> tag - <tr> tag and <td> tag.
The <tr> tag specifies the row in the table of contents.
The <th> tag specifies the title of the table of contents.
The <td> tag defines the cells in the table of contents.
The <table> tag may include tags such as:
- <tfoot> tag
- <thead> tag
- <colgroup> tag
- <caption> tag
- <tbody> tag
also use.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<table> |
Global Attributes
The table tag supports the HTML Global Attributes.
Event Attributes
The table tag supports the HTML Event Attributes.
More Examples
Default CSS
Most browsers will display the table tag with the following default style: