How Many Type Tag Is Used In Table Tag


 

Type of Table Tag 


HTML Table is defined from Table Element. But, Table Element alone cannot make a table. Therefore some other tags are also used to make a complete table. Which are being mentioned below:

<Table> It defines a table.

<Tr> It defines a row in a table.

<Th> It defines a header cell in a table.

<Td> It defines a cell in a table.

<caption> This defines the table caption.

<Colgroup> It specifies a group of one or more columns in a table for formatting.

<Col> It is used with the <colgroup> element to specify the column properties for each column.

<Tbody> It is used to group the content of the body in one table.

<Thead> It is used to group the header content in a table.

<Tfooter> It is used to group the footer content in a table. 


Check it.

<table>  

  <tr>
    <th>First_Name</th>
    <th>Last_Name</th>
    <th>Marks</th>
</tr>  

<tr>
  <td>Sumit</td> 
 <td>Singh</td>
 <td>80</td>
</tr>  

<tr>
  <td>Shubham</td>
  <td>Singh</td>
  <td>85</td>
</tr>  

<tr>
  <td>Monika</td>
  <td>Singh</td>
  <td>83</td>
</tr>  

<tr>
  <td>priya</td>
  <td>Singh</td>
  <td>72</td>
</tr>  
</table>


Output :


First_Name Last_Name Marks
Sumit singh 80
Shubham singh 85
Monika Singh 83
Priya Singh 72

Post a Comment

0 Comments