Which tag allows you to add a row in a table?
Answers
A table in HTML is defined from the <table> tag.
So, a table and its function is established from here on and open for formatting.
Now, to enable a row in a table, you use <tr> tag for every row in which you define the table headers using the <th> tag.
"The tag which allows a web developer to add a row in a table is <tr> tag. It is used in combination with its ending tag as <tr>Row Content</tr>.
It can only be used inside a table tag i.e., <table></table>. The table row tag is pretty much insignificant on its own. It is needed to be used in combination with <table>, <th>, and <td> tags.
An example of the usage of <tr> tag is given below:
<table>
<tr>
<th>A</th>
<th>Heading</th>
<th>Row</th>
</tr>
<tr>
<td>The first</td>
<td>row of</td>
<td>table data</td>
</tr>
<tr>
<td>The second</td>
<td>row of</td>
<td>table data</td>
</tr>
</table>"