Adding tables


It is time for an exercise. To the HTML file you have been working on, create a table, with a caption, using the lists and the same NASA button used in the exercise of the last chapter, similar to the example shown below.

<HTML>
<HEAD>
<TITLE>My Home Page</TITLE>
</HEAD>

<!-- Written by me -->
<!-- Created:  yesterday -->
<!-- Last modified:  today -->

<BODY>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="5">
<CAPTION>My Favorites</CAPTION>
<TR>
   <TH ROWSPAN="2">Web Site</TH>
   <TH COLSPAN="2">Foods</TH>
   <TH ROWSPAN="2">Cities</TH>
</TR>
<TR>
   <TH>Italian</TH> <TH>Fruits</TH>
</TR>
<TR>
<TD ALIGN="CENTER">
<A HREF="http://www.nasa.gov">
<IMG SRC="images/nasa_btn.gif" ALT="NASA logo"></A></TD>
<TD><UL>
      <LI>Lasagna               <LI>Pizza 
      <LI>Prosciutto            <LI>Ravioli
      <LI>Spaghetti
    </UL>
</TD> 
<TD><UL>
      <LI>Apples                <LI>Bananas 
      <LI>Cherries              <LI>Figs
      <LI>Grapes                <LI>Melon
      <LI>Nectarines            <LI>Oranges
      <LI>Papaya
    </UL> 
</TD>
<TD><OL>
      <LI>Rio de Janeiro
      <LI>Paris
      <LI>Venice
    </OL>
</TD>
</TR>
</TABLE>
 
<P>

<DL>
<DT><STRONG>favorite</STRONG>
<DD>A person, or thing liked or prefered above all others; 
regarded with special favor; special.  Things I really like.
</DL>

</BODY>
</HTML>

Once you have added the table to your HTML file, run it to see if you get the same results I obtained.

Let's review this chapter.


[INDEX] [PREVIOUS] [NEXT PAGE] [CHAPTER 8]

Valid HTML 3.2!