Exercise 3: Lists
Resources for this exercise:
- See the Course Schedule for due date. Exercises are due before the beginning of class on the due date.
- See the Homework Frequently Asked Questions (FAQ) page for answers to questions about homework exercises.
- See the How to Name Files and Directories page. Failure to follow proper naming conventions will result in lost credit.
- See the Our Class Web Server page for information on the server.
- See the HTML & Web Design: Learning Aids section of the Resources page for information on basic HTML tags.
- See the How to Upload to Webhawks.org with Fetch (Macintosh) and How to Upload to Webhawks.org with CoreFTP (Windows) for information on uploading.
1) Using a basic text editor create a new HTML document, separate from your home page. This page will become your exercise 3 page.
2) This page must display your name and "Exercise 3".
3) This page's
<title> must indicate that this is your
exercise 3, so it should say something like "John Sky's DM60 Exercise
4) This page must contain the HTML 5 DocType that will enable you to use an HTML validator, as explained in How to Use the W3C HTML and CSS Validators.
5) This page must contain the character encoding meta tag (as explained in Character
Encoding for Web Pages). Because this tag tells the browser how to interpret
the characters used in
the document, it should be the first tag in the
<head> tag, place this line of code:
6) This page must contain links (either buttons or text links) to the HTML and CSS validators. See How to Put HTML and CSS Validate Buttons on Your Page for information on how I want you to to do this. Make sure you use the code for HTML 5 (not XHTML 1.0 Strict nor HTML 4, for example). (Use the block of code on this page to make the button links or text links, so that clicking on the links automatically lets you know if the page validates or not.)
Make sure you use the correct links (for HTML 5).
7) This page must demonstrate the correct use of the three types of lists, and, in addition to three seperate lists, three nested lists.
Each unordered and ordered list must have at least three list items; each discussion
list (sometimes called definition lists) must have at least three discussion term
<dt> and three discussion description
<dd> elements. Each nested list must have at least ten items total. This means that, counting each nested list as one list, your page will have a total of six lists
8) Horizontal rules must be between (not within) each of the six lists.
9) The first list must be an unordered list; followed by a horizontal rule; followed by an ordered list; followed by a horizontal rule; followed by a discussion list; followed by a horizontal rule; followed by a nested list (nesting an unordered list inside an unordered list); followed by a horizontal rule; followed by a nested list (nesting an ordered list inside an ordered list); followed by a horizontal rule; followed by a nested list (nesting an unordered list inside an ordered list).
Note that when you are nesting one list in another,
you are actually nesting one
into the list
10) All list item elements:
have their ending
</li>. This is the most important requirement of this exercise.
11) Remember that each of the six lists must be separated by a horizontal rule
<hr>, and that each list must use different content.
12) This page must demonstrate the correct use of
<em>. You could choose, for example, to have one
<h1> at the top of the page, and to have an
<h2> just before each list.
13) In summary, this page demonstrate the correct use of the following tags:
|unordered (bulleted) list||
|ordered (numbered) list||
In other words, this page must contain the basic HTML structural tags, some formatting tags, the three different types of lists (an unordered list, an ordered list, and a definition list), and make use of a nested list.
14) Save this file as a text-only file, and when you save the file name it "exercise3.html". Make sure you name it exactly as it says: all lowercase, with no spaces in the file name.
15) Upload this page into the root of your "public_html" folder on the webhawks.org server.
16) View your page (the page on the server, not the page on your disk) in a Web browser:
to view your exercise 3 page.
17) Make sure the HTML on this page validates (using the HTML 5 Doctype) with no errors, according to the W3C's online HTML Validator at http://validator.w3.org/. You can easily do this by clicking on your HTML validator link. For more information, see How to Use the W3C HTML and CSS Validators for step-by-step directions.
18) If you have used any CSS (you probably haven't, as we haven't covered style sheets yet), make sure the CSS on this page validates, with no errors, according to the W3C's online CSS Validator at: http://jigsaw.w3.org/css-validator/. You can easily do this by clicking on your CSS validator button. See the CSS section of How to Use the W3C HTML and CSS Validators for step-by-step directions.
19) If there are any errors, fix them, re-upload the page, and validate it again.
20) Submit the feedback form. To receive full credit for this exercise you must submit this feedback form before it expires. This exercise is due on 9/28/15. Allowing for a one-day grace period, the form will expire at the end of the day following the due date, which means the form for this exercise will expire at 12:00 AM on 09/30/15.