From the course: HTML Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building table rows

Building table rows - HTML Tutorial

From the course: HTML Essential Training

Start my 1-month free trial

Building table rows

- To create an HTML table, you use several different HTML elements in just the right combination. Table, TR, TH, and TD. Here, let's list them for you in a table. The table element wraps around the whole table, around all our content and markup for that table, marking the beginning and end of the table itself. The TR element stands for table row. It wraps around a set of elements, defining them as belonging to the same row. The TH element stands for table header. It defines a header for a column, and the TD element stands for table data. It marks up the cells of data. Let's go through this using a simple example. Here's some content that belongs in a table. Let's get this into HTML. We start with a table element to mark the beginning of the table. Of course we'll close it at the end, so let's do that now. This table has six rows, five rows about five different birds, and a top row, which contains the header for each…

Contents