Lab :

Except where otherwise noted, the contents of this document are Copyright © Marty Stepp, Jessica Miller, and Victoria Kirst. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.

thanks to former TAs Victoria Kirst, Jeff Prouty, Morgan Doocy, Brian Le for their work on these labs.

Valid HTML5 Valid CSS

Basic lab instructions

Today's lab exercises

Today you will create a basic "About Me" HTML page and style it with a bit of CSS.

  1. About Me Page
  2. Style Your Page with CSS
  3. Upload Your Page to the Web
  4. Advanced Style Techniques
  5. Favorite Movie
  6. Decrementing ol

Exercise : About Me Page (~20-25 min)

(The next 5 slides describe this exercise. Please read them all, then start.)

Create a page aboutme.html that describes you. Include information such as:

Exercise , example

This example page describes textbook coauthor Victoria Kirst.
Look at the lecture slides about HTML to see examples of the right tags to use.

expected output

Unordered list: <ul>, <li>

ul represents a bulleted list of items (block)
li represents a single item within the list (block)

<li>No shoes</li>
    <li>No shirt</li>
    <li>No problem!</li>

More about unordered lists

    <li>Family Guy:

Ordered list: <ol>

ol represents a numbered list of items (block)

<p>RIAA business model:</p>
    <li>Sue customers</li>
  • we can make lists with letters or Roman numerals using CSS (later)

Exercise , how to view the page

To see your page in the web browser, press Ctrl + O, and then click on your your html file.
In Firefox, click File, Open File... and browse to your page file to open it.

If using Notepad++, you can click Run, Launch in Firefox.

run in web browser OR firefox open file firefox open file 2

Exercise : CSS Styles (~15 min)

(See example screenshot on next slide.)

Create a stylesheet named styleme.css to improve the appearance of your About Me page. You can find CSS properties in the lecture slides.

Exercise , example

This example is Victoria's styled page (scroll down to see the rest):

expected output

Exercise : Put Page on Web (~10 min)

It's good to practice uploading to Webster, because you need to do that on your homework. Ask a TA if you have any problems logging in to Webster or uploading your files.

Exercise : Advanced Styles (~10 min)

(See example screenshot on next slide.)

If you complete the previous exercises, great job! You can add any extra content to your page that you like. Or if you want a challenge, try to figure out how to add the following styles:

These are tricks not covered yet in class. Use Google or a CSS reference such as W3Schools.

Exercise , example

These are snippets of TA Victoria's updated page, showing links and drop-caps:

Links: (hover is not shown)
expected output

expected output

Exercise : Favorite Movie

(See example screenshot on next slide and more information on the slide after.)

Look up one of the favorite movies/shows from your About Me page on imdb.com.

Exercise , example

These are snippets of TA Victoria's updated page, showing a favorite movie:

expected output

Definition list: <dl>, <dt>, <dd>

dl represents a list of definitions of terms (block)
dt represents each term, and dd its definition

    <dt>newbie</dt> <dd>one who does not have mad skills</dd>
    <dt>own</dt> <dd>to soundly defeat
        (e.g. I owned that newbie!)</dd>
    <dt>frag</dt> <dd>a kill in a shooting game</dd>

Exercise : (h4x0rz only): Decrementing ol

(See example screenshot on next slide.)

The last problem on each week's lab will be for "h4x0rz" (hackers) only. The h4x0rz problem will always be very tricky, and you aren't expected to finish it. Give it a try if you succeed at solving all of the other exercises!

Exercise , example

These are snippets of TA Victoria's updated page with a decrementing ol:

expected output

If you finish them all...

If you finish all the exercises, you can add any other content or styles you like to your page.

If the lab is over or almost over, check with a TA and you may be able to be dismissed.

Once the lab time is up, you may stop working. You don't need to complete the remaining exercises unless you want to for fun.

Great work!