WDD 230: Web Frontend Development I

HTML Tables for Data Presentation

Overview

HTML tables provide a structured way to represent data traditionally in rows and columns, such tabular data.

"The table HTML element represents tabular data—that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data." – MDN
Screenshot of example table design of orders.
Figure 1: Example HTML Table Layout - Paginated View

Prepare

The design issue with table markup is that HTML tables have been used for site layout. Do not use HTML table structures for page layout. This is a problem because of the following:

Tables are very common in all aspects of visual humanity and can be used to present data in a way that is well recognized by users.

Activity Instructions

Build the following HTML table.

A screenshot of the table build assignment example.
  1. Create a "week04" folder if you have not already.
  2. Create an HTML file named "tablebuild.html" with a linked CSS file to support your styling of the table.
  3. Use the thead and tbody tags in your table structure.
  4. Use a caption element within your table to display the "Table 1: Account Feature Comparison" caption.
  5. The color scheme is your choice.
  6. You must include zebra striping using nth-child pseudo-class.
  7. You can use built-in emoticons of ✔️ and ❌ or copy them from this page.
  8. Always ensure that your HTML and CSS documents are valid.

Submission

  1. Update your home portal page with a link to this activity.
  2. Commit and post these additions and updates to your wdd230 GitHub Pages repository.