Example

HTML A simple code example of <table> tag

Laboratory

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

Example

HTML <table> tag with custom style -Example #1

Laboratory

Example

HTML <table> tag with custom style -Example #2

Laboratory

Example

HTML <table> tag with custom style -Example #3

Laboratory

Example

HTML <table> tag with custom style -Example #4

Laboratory

Example

HTML <table> tag with custom style -Example #5

Laboratory

Example

HTML <table> tag with custom style -Example #6

Laboratory

Example

HTML <table> tag with custom style -Example #7

Laboratory

Example

HTML <table> tag with custom style -Example #8

Laboratory

Example

HTML <table> tag with custom style -Example #9

Laboratory

Default CSS

Most browsers will display the table tag with the following default style: