CREATING TABLES
HTML tables are made up of three pairs of tags:
The table tags
The table row tags
The table data tags (You place your content within these tags.)
Table tags look like this: <table></table>
Table row tags look like this: <tr></tr>
Table data tags look like this: <td></td>
1) Our page is getting cluttered, so we're going to start from scratch. Type the following into Notepad:
- Code: Select all
<html>
<head>
<title>SocietasViaRomana</title>
</head>
<body>
<table border="1">
<tr>
<td>
Here is some table data.
</td>
<td>
We have given the table a border of "1" so that you can see it.
</td>
</tr>
</table>
</body>
</html>
2) Save this page and view it according to the instructions in Step 6 of LESSON 1.
Let's explain this:
The table tags create the table.
The table row tags create a table row.
The table data tags are within the table row tags.
The table data tags are the place where you type your content.