Free Web space and hosting from freehomepage.com
Search the Web


HOME
BASIC TUTORIAL
What is Html?
Sample Web Page
Basic Tags
Character Entities
Html Links
Frames
Tables
Lists
Forms
Images
Backgrounds
APPENDIX
Html Tag List

Tables

The <table> tag creates a table. A table is divided into rows using the <tr> tag and each row is divided into individual data cells using the <td> tag (“td” stands for table data). A data cell can contain practically anything.
<table border=”1”>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>

The html above would look something like this:
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

If you do not add the border attribute, the table will automatically be displayed without any borders. This is good in some cases, but most of the time you should use the border attribute.
You can also use the
<th> tag to define a heading in a table. Just put the tag in place of the <td> tag.
If you want to create a data cell with nothing in it, you should use a
non-breaking space (&nbsp;) as the content of the data cell. Other wise, the data cell would not be displayed very well on most browsers.
To learn how to create lists, click on “next”.

Much of what I learned to create this tutorial I found on www.w3schools.com.
Back to Top
Lewisville Middle School-2003