in this HTML tutorial we are learn about table tag
table tag is used to insert table in HTML
in HTML <table> this tag is used to define table.
<tr> tag is define table tow.
<th> tag is use to define table header. table header are bolt and center by default.
<td> tag is used to define data/cell on table.
write a HTML program to insert table on web page
<html>
<body>
<h2>basic html table</h2>
<table>
<tr>
<th>brand</th>
<th>bike name</th>
<th>HP(horse power)</th>
<th>torque</th>
</tr>
<tr>
<td>BMW</td>
<td>s1000rr</td>
<td>205hp</td>
<td>11,000rpm</td>
</tr>
<tr>
<td>ducati </td>
<td>ducati pana</td>
<td>211hp</td>
<td>13,000rpm</td>
</tr>
<tr>
<td>ktm</td>
<td>KTM rc81190</td>
<td>173hp</td>
<td>10,825rpm</td>
</tr>
</table>
</body>
</html>
output:
0 Comments