Comp25: HTML - Tables

Learning Objectives

  1. To use tables to enhance the appearance and functionality of your website in a variety of ways

1 - Product Listing

  1. Open your products.html page for editing.  Remember that we recently added information about all of the products that you sell.  It's time to clean up the appearance of this page using tables.
  2. Create a new table near the top of the page with code similar to the following:
  3. (Edit the <TABLE> and <TR> tags  as shown in class if you prefer to control the column widths: example: <table width="100%">  <th width=20%>)


  4. Copy-and-paste the second row from our sample as many times as necessary to create additional rows for each of your products.  Preview your new table to make sure it looks correct.
  5. Using the descriptions and images that you have already written, transfer (using cut-and-paste) your previously written content into the appropriate data cells (td).  Each product should end up in its own row.
    1. Create a four-digit product code
    2. Enter the product name
    3. Paste the description along with your bullet point benefits
    4. Paste the product image
  6. Preview your completed table and correct any mistakes in your code.  Once you have transferred your product content into the table, delete the original content.
  7. Using Paint or some other photo editing tool, edit your product photos so that they are not super huge and look similar to each other in size.

2- Table Styles

Enhance the appearance of your tables. 

  1. Edit your existing style sheet with the following styles: (NOTE: The colors are examples only --- use your own color schemes and preferences.)
  2. After saving your style sheet, refresh your webpage to see your table styled like the following:

 

  1. Edit your stylesheet to change the appearance of your tables further.  Refer to the reading for additional table styles.
  2. Upload products.html to Blackboard when you are finished. 

Helpful Links

Tables Lecture

Tables Reading

Grading Guidelines

This assignment will be graded using the following guidelines:

Grading Rubric:
On-Time 25% 12.5
Accuracy 50% 25
Style / Creativity 25% 12.5
Total Points Possible:  100% 50