Sree Sankar
Once upon a time we were heroes...
Let's look into some examples! we are not going to dive deep on this!
Code:-
<table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Result
Month | Savings |
---|---|
January | $100 |
<table> tag is the main tag on Table.
We add information by
rows, and for rows we use <tr> tag.
In this row we add data by
<td> tag, <td> will be a child of <tr> tag.
If its
heading then we can use <th> tag instead of <td>. This tag
will make font bold!