table tag



Table tag is used to create a table in the HTML document.
<table border="Value"> <tr> <th>Text</th> </tr> <tr> </table>
Element Specific attributes supported by this tag are:
border "0", "1" Set table border

Example Code:

Result :

Airline From - To Price (Rs)
Kingfisher Chennai to Mumbai 10000
Spicejet Delhi to Kolkata 8000

  • It is mandatory to include <tr> and <td> elements inside <table>.
  • <th> specifies the Table Header.
  • <tr> specifies the Table Row.
  • <td> specifies the Table Cell.
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.


It is applicable to all major browsers.

Ask Questions

Ask Question