This content originally appeared on Envato Tuts+ Tutorials and was authored by Andy Leverenz
Example
Syntax
1 |
<table>
|
2 |
<tr>
|
3 |
<th>Name</th> |
4 |
<th>Surname</th> |
5 |
<th>Occupation</th> |
6 |
</tr>
|
7 |
<tr>
|
8 |
<td>Jane</td> |
9 |
<td>Doe</td> |
10 |
<td>Web Developer</td> |
11 |
</tr>
|
12 |
</table>
|
Result
Browser Support
The <tr>
tag is supported in all modern browsers as well as many email clients. Read more on caniuse.com.
Attributes
The <tr>
tag supports Global Attributes in HTML. Global Attributes are common to all HTML elements and can be used on all of them (though they may not have much of an effect on some of them).
Content
The only elements which can be directly nested within a <tr>
element are <td>
or <th>
elements.
Learn More
This content originally appeared on Envato Tuts+ Tutorials and was authored by Andy Leverenz

Andy Leverenz | Sciencx (2023-02-10T12:46:24+00:00) HTML Element: tr. Retrieved from https://www.scien.cx/2023/02/10/html-element-tr/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.