Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating a Data Table Web Design – Section 3-8 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I”

Similar presentations


Presentation on theme: "Creating a Data Table Web Design – Section 3-8 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I”"— Presentation transcript:

1 Creating a Data Table Web Design – Section 3-8 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials

2 Objectives The Student will:  Understand the HMTL tags associated with data tables.  Be able create a simple data table

3 HMTL Tags for Tables HTML tables begin and end with table elements:.  The opening table element should include a summary attribute, which is read by screen readers in order to give blind users an overview of what the table contains and how it's organized. Being informed of this information up front helps blind users to more easily navigate the table and understand what they're hearing. Example:

4 HMTL Tags for Tables A table's caption (brief descriptive text, usually displayed above the table) begins and ends with caption elements: Each row in a table begins and ends with table row (tr) elements:

5 HMTL Tags for Tables Each cell in the table begins and ends with either table header (th) elements or table data (td) elements, depending on what type of information the cell contains.  If a cell contains headers, it begins and ends with th elements:  If a cell contains data (not headers), it begins and ends with td elements:

6 HMTL Tags for Tables Table header elements (th) should also include a scope attribute, which is either scope="row" or scope="col". This instructs screen readers as to which headers apply to which cells. Screen readers read tables row by row from left to right, and without this extra markup blind users would have a difficult time if the header applies to the column

7 HTML Table Example Let’s look at the HMTL to create this table

8 HTML Table Example School Lunch Menu

9 HTML Table Example Monday Tuesday Wednesday Thursday Friday

10 HTML Table Example Carnivores Sausage pizza Corn dogs Sloppy Joe Beef taco Chicken and dumplings

11 HTML Table Example Herbivores Veggie pizza Veggie dogs BBQ tempeh Bean burrito Tofu teriyaki

12 Summary Tables were introduced to the web with the original purpose of displaying data in rows and columns. Build tables using the table HTML tags Tables are built row by row. Rest of Today Follow the instructions to create a table. This does not go into your index.htm file. Create a file called table.htm

13 Final Result Final table doesn’t look great but we will come back to it later and clean it up.


Download ppt "Creating a Data Table Web Design – Section 3-8 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I”"

Similar presentations


Ads by Google