ex03 lists

Upload: shadro

Post on 08-Apr-2018

230 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 EX03 Lists

    1/2

    Assignment #3a - create an html page with lists

    due before the beginning of next class

    no late assignments accepted

    marked out of 10 -- 2% of total mark

    Instructions:

    1) using a text editor, create an html document using the content below2) the document will contain comment(s) with:

    a) your name

    b) the file name

    c) the date

    3) the box around the outside of the content does not have to be reproduced.

    4) name the file "chapter_10.html"

    Content

    Chapter 10

    More Javascript

    1. Basic Expressions and Operators

    i. Using Operators with Strings

    ii. Performing Math Operations

    ii. Assigning Values to Variables

    2. Logical Operators

    3. Comparison and Conditional Operators

    4. Decision Making with the if statement

    if statements

    if...else statements

    nested if and if...else statements

    5. Chapter Summary

    Hand in

    View your HTML page in the browser and print the page from the browser to show how it displaysFrom the site: w3c.org, browse for your local file in the validator

    Check "show page source" from the validator options

    Run validation

    Once your document validates, print the page from the validator with the code showing at the bottom of

    your printout.

    Hand in all pages showing that the code has passed validation and HTML line code on the bottom.

    8

  • 8/6/2019 EX03 Lists

    2/2

    9

    Assignment #3b - definition lists and start values

    due before the beginning of next class

    no late assignments accepted

    marked out of 10 -- 3% of total mark

    Instructions:1) using a text editor, create an html document based on the criteria below

    2) the document will contain comment(s) with:

    a) your name

    b) the file name

    c) the date

    3) name the file "definition.html"

    4) you do not have to match the visual layout exactly (eg. tabs, spaces and word wrap)

    Content

    120. When is a definition list useful?

    a. listing items with a title and description

    b. bibliograpy or table of contents

    c. listing items that are relevent to each other and should be combined as one

    d. by using definition lists, and other semantic markup constructs, you can more easily

    extract structured information about your content.

    DL

    A definition list is the container element for DT and DD elements. The DL element should be used

    when you want incorporate a definition of a term in your document, it is often used in glossaries to

    define many terms, it is also used in normal documents when the author wishes to explain a term

    in a more detail (Like this definition).

    DT

    The term currently being defined in the definition list. This element contains inline data.

    DD

    The definition description element contains data that describes a definition term. This data may be

    either inline, or it may be block level.

    121. Samples of Definition lists

    Hand in

    View your HTML page in the browser and print the page from the browser to show how it displays

    From the site: w3c.org, browse for your local file in the validator

    Check "show page source" from the validator options

    Run validation

    Once your document validates, print the page from the validator with the code showing at the bottom of

    your printout.

    Hand in all pages showing that the code has passed validation and HTML line code on the bottom.