HTML Table

The table in HTML is used to contains data and data alignment. In simple table rows and columns are available also in the HTML table contains the rows and columns.
To create we use the tag.
Some important tags that used in Table -

- tag indicate the table row .

- Tag used for table heading .

- It refers to table data also used to create columns in a table .

- To give the table height .

- It used to give the table width .

Let's learn with an example.


HTML Table


<!DOCTYPE html>
<html>
<head>
<title>HTML Table </title>
</head>
<body>
<table height="150" width="500" border="1">  
<tr> 
<td> 
Employee Name
</td> 
<td> 
Ramesh 
</td> >
<td> 
Vikash
</td> <td> 
Sheema 
</td> <td> 
Suresh
</td> 
</td> <td> 
Reetu
</td> 
</tr> 
<tr> 
<td> 
Salary
</td> 
<td> 
10000
</td> 
<td> 
15000
</td> <td> 
20000
</td> <td> 
12000
</td> 
<td> 
25000
</td> 
</tr> 
</table>
</body>
</html>
Run

How to - HTML Table -Steps
1. First of all use the table tag -



3.Write table heading ,.
4. If you want to create column then use the tag-
Attributes - height and width. 5. End at the last close the table tag-
and close the table handing and also table row ,
and closing tag -

Recommended Posts:-