DEV Community

Cover image for HTML tags | tr
Carlos Espada
Carlos Espada

Posted on • Edited on

1

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)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started