Question: HTML - Tables Learning Objectives To use tables to enhance the appearance and functionality of your website in a variety of ways 1 - Product

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 (Must be under body tag, navigation, etc.) with code similar to the following:
    3. (Edit the and tags as shown in class if you prefer to control the column widths: example:
      )
      1. (consider customizing the first row's
      tags to specify the width of each column: example: )

      3. 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.

      4. 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.

      • Create a four-digit product code
      • Enter the product name
      • Paste the description along with your bullet point benefits
      • Paste the product image

      5. Be sure to use the td width, table width and td valign attributes to be sure your table content is evenly balanced.

      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 and/or image sizing tags, edit your product photos so that they are not super huge, look similar to each other in size and are transparent (no white backgrounds!)

      2- Table Styles

      Enhance the appearance of your tables.

      1. Edit your existing style sheet and add the following styles: (NOTE: The colors are examples only --- use your own color schemes and preferences.) (Use the following style : background-image: url('yourimage.jpg'); to add a background image instead of color to your table or heading.)
      2. After saving your style sheet, refresh your webpage to see your table styled like the following but with your own styles/colors/fonts/etc:
      3. Edit your stylesheet to change the appearance of your tables further. Refer to the reading for additional table styles.
      4. Upload products.html to Canvas when you are finished.

      Step by Step Solution

      There are 3 Steps involved in it

      1 Expert Approved Answer
      Step: 1 Unlock blur-text-image
      Question Has Been Solved by an Expert!

      Get step-by-step solutions from verified subject matter experts

      Step: 2 Unlock
      Step: 3 Unlock

      Students Have Also Explored These Related Databases Questions!