The University of North Carolina at Chapel Hill
JOMC 50/EIS Research Initiative
This site last updated March 19, 1997.

Getting Started With Tables

<table> Tables essentially use six tags, four of which are repeated to create the table's design. These tags are:

The "table" tags are placed at the beginning and end the code which will make your table. The "tr" tags create the rows of your table, and the "td" tags create the cells of each row of your table. The text or graphics you want to appear in your table needs to be placed in between the "td" tags.

To have a table with a visible border, you will need to insert the word "border" into the <table> tag so that it will look like this: lt;table border>

Example: A two-row, two column table with a visible border

If you use this code:

<table border>
<tr>
<td>
Small text
</td>
<td>
<td>
</td>
<td>
<h3>
Larger text
</td>
</tr>
<tr>
<td>
<td>
</td>
<td>
<img src="http://www.unc.edu/courses/jomc050/smiley.gif">
</td>
<td>
<img src="http://www.unc.edu/courses/jomc050/smiley.gif">
</td>
</tr>

You will get this table

Small text

Larger text

To have this table without a visible border, simply remove the "border" from the "table" tag.

Things to remember

For More Information on Tables



This web site maintained by Eric Chernoff especially for students of the UNC's School of Journalism and Mass Communication's JOMC 50 class. For more information, please contact one of the following:
Prof. Deb Aikat
daikat@email.unc.edu
Tom Hughes, teaching assistant
tahughes@email.unc.edu
Eric Chernoff, student coordinator
echernof@email.unc.edu
Mike Manning
manning1@email.unc.edu
Eric Chernoff, student coordinator
echernof@email.unc.edu