DEV Community

Cover image for HTML tags | tr
Carlos Espada
Carlos Espada

Posted on • Edited on

HTML tags | tr

It is used to define a row of cells in a table. This row can be made up of <th> and/or <td>.

It has no attributes other than global ones, so to define presentation aspects, CSS properties such as background-color, text-align or vertical-align will be used.

Its parent must be <thead>, <tbody>, or <tfoot>, or a <table> element as long as there is no <tbody> element.

Has an implicit ARIA role row.

  • Type: table-row
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Top comments (0)