Skip to main content

Posts

Showing posts with the label TR tag HTML coding

Attributes of TR Tag in HTML Tables

Use Of TR Tag <TR> tag is used to create rows in HTML Tables. <TR> is the opening tag to start a row and </TR> is a closing tag to end a row. You can place pairs of <td>...</td> tags to create data cells in a row within the <tr>...</tr> tags. for example to create a row with only one cell containing data "Apples", we will use the following html code.and Mangoes respectively: <tr> <td>Apples</td> </tr> Apples If you want to create a row with two cells containing data "Apples" and "Mangoes" respectively, we will use the following html code. <tr> <td>Apples</td> <td>Mangoes</td> </tr> Apples Mangoes You canm also create a header row with the help of <TR> tag and <TH> tags. For example, to create a header row with two header cells with contents "Employee" and "Salary", we will use the following HTML co