I am currently updating these pages and might have made minor changes since you last viewed it in your browser.
In this lesson you'll learn how to create both numbered and bulleted lists, and how to create accessible HTML tables. Lists are used for many things: step-by-step instructions, lists of items or people, and even for some kinds of menu structures. HTML tables are used to display tabular data in rows and columns.
colspan
and rowspan
attributes for, and where do you use them?scope
attribute for and
what are the possible values it can accept?For each exercise, validate the HTML using the HTML Validator. Fix all problems until you get no errors.
<link rel="stylesheet" href="../../css/main.css">This assumes that you're following the file/directory structure described in each week's exercises and using industry best practices. (e.g. if your .html is in /week1/exercise1, then ../../ goes back up to the syst10049 directory, then /css/main.css references the main.css file inside the /css directory inside /syst10049)
There are 2 multiple-choice questions displayed. Question 1 has the text "The ---- element defines a single piece of meta-data for a document." and has four possible answered labeled A, B, C, and D. They are "<head>", "<meta>", "<data>", and "<link>". The second question has the text "The type attribute in an ordered list defines:". Question 2 also has four options labeled A, B, C, and D. They are "Whether you want an ordered, unordered, or definition list.", "What style of bullet you want to use.", "What formatting you want for the list.", and "The style of numbering you want for the list."
This picture shows a nested list of the various violin concertos in Vivaldi's four seasons. You can find the text at Wikipedia. The outer list is an unordered list where each list item is one concerto (Spring, Summer, Autumn, Winter); inside each list item is an ordered list of the 3 movements for that concerto, using upper-case roman numerals.
This picture shows a large table with a weekend menu. There's a header across the top of the table that says "Weekend Menu". Along the left side of the table are 2 cells vertical to each other: One containing "Saturday" and the other containing "Sunday". To the right of the Saturday cell is another 3 cells stacked vertically containing "Breakfast", "Lunch", and "Dinner". These three vertical cells are repeated to the right of the Sunday cell, also. To the right of the top-most Breakfast cell is a bullet list of food items: "Coffee, Tea, Fruit Juice", "Eggs to order", "Bacon or Sausage", "Fresh fruit", and "Bagel or Toast". To the right of the top-most Lunch cell is a bullet list of food items: "Pop, Coffee, Tea, Fruit Juice", "Various Sandwiches and Wraps", "Fresh fruit", and "Tiramisu and Strawberry Shortcake". To the right of the top-most Dinner cell is a bullet list of food items: "Pop, Coffee, Tea, Fruit Juice, Red or White Wine, Beer", "Garden Salad", "Roast Chicken with potatoes and peas or Vegetarian Quinoa Spaghetti", and "Various breads". To the right of the bottom three Breakfast, Lunch, and Dinner cells are three similar cells to the ones described above, containing various food items. Feel free to use the same text or type in your own food items.
This picture shows a generic table with several rows and columns. The table is structured as: Row 1: Three cells, the first contains "Cell 1", the second contains "Cell 2" and the third contains "Cell 3". Row 2: A tall cell that contains "Cell 4". To the right of Cell 4 is a set of 8 cells - 2 cells wide, 4 cells high. Each cell contains a number. They are, from left to right and top to bottom: 5, 6, 8, 9, 10, 11, 12, and 13. All of these cells - Cell 4 and the numbered cells, are under Cell 1. Beside the group of 8 numbered cells is a larger cell that contains "Cell 7". Cell 7 is underneath Cell 2 and Cell 3. To the left of Cell 7 are the cells with the numbers 6, 9, and 11. Under Cell 7 (and to the right of the cell containing the number 13), are 2 more cells side-by-side. Those 2 cells contain "Cell 14" and "Cell 15". Cell 14 lines up perfectly with Cell 2 and Cell 15 lines up perfectly with Cell 3 (Cell 7 sandwiched between the two groups of cells). It's helpful to use some kind of tactile tool to lay out each cell, or you can simply use popsicle sticks or toothpicks (I stick them to the table with sticky putty to keep them from moving).