<?xml version="1.0" encoding="utf-8"?>

The <tr> tag

The <tr> tag

The <tr> element — short for table row — defines a row of cells in a table, obviously. It acts as a container for table cells and holds other elements that define cells with headers and regular data. Basically, everything you want to display in the row goes inside this tag, and the <tr> tag itself is nested inside the <table> tag. Your table will need as many <tr> tags as you need rows.

Improve your UX & Product skills with interactive courses that actually work