Creating Tables - Chapter 5
Creating Tables
To display a table you have to designate its rows, including the header row.
Let’s say we wanted to list the games our volleyball team has left in the season and whether they were away games or home games.
You can see that we have a header row at the top and three rows with data in them corresponding to each header column.
You can use:
<table> (to define the fact that this will be a table), the closing tag </table> goes at the end of the entire table.
<tr> (indicates a row within the table)
<th> (indicates a table header)
<td> (indicates data that will be included in each row, i.e. “TriState” and “Away”)
*You, of course, will need the closing tags for each element.
Refer to the course booklet for the code for Exercise #5.