<Table> Tag
This tag is used to create the table by rows and columns, the <table> tag contain some important tag (<td> and <tr>).Syntax
<table>
<tr>
<td>....</td>
<td>....</td>
</tr>
</table>
In the above syntax is creating a row with two columns. But in most of the situation every table contains, header field, so if want to indicate the header part just use the <th> tag.
Example with <TH> tag
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Merbin</td>
<td>30</td>
</tr>
</table>
Output
Name | Age |
---|---|
Merbin | 30 |
Example Program
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 comments:
Post a Comment