Lab 1

Lab 1

HTML & CSS Introduction


Lab Setup

Create lab folders

  1. Create a folder in your user drive (Z:) for storing your course work called csis390/.
  2. Create a sub-folder in your csis390 folder for storing your lab work, i.e., csis390/labs.
  3. Create sub-folders for all the labs, i.e., lab1, lab2, ..., lab3.

Make sure you can view file extensions in Windows

  1. Click the Start menu
  2. Type "folder options" in the search and click "Folder Options" when it appears at the top of the Start menu
  3. A dialog box with the title "Folder Options" will appear. Click the "View" tab at the top of the window
  4. Click to uncheck the box for "Hide extensions for known file types"
  5. Click the "OK" button at the bottom of the dialog box

Download Starter Files

Download all the images (.png) and text files (.txt) from this lab1 folder to your own lab1 folder, i.e., csis390/labs/lab1


1. Creating HTML Documents

TASK CHECK

Verify that the document validates at: html5.validator.nu
Then, show your instructor your completed valid document.


2. Styling Documents with CSS

  1. Immediately save starter.html as final.html.
  2. Add a style tag to final.html for storing embedded CSS code.
  3. Add CSS selectors and properties to make the web page look like this: final.pdf
  4. Chapter 1 of the zyBook will explain CSS syntax, selectors and properties.
  5. Use the following directions to help you match the style. Your web page does not have to exactly match but it needs to be a close approximation.
  • Structural Additions
  • Put all the visible content inside a div tag, i.e.,
    <body>
      <div>
            All the visible content
      </div>
    </body>

    We will use this div tag to create the "page" look and feel.
  • Put all the "Skills" content inside a section tag so we can indent and add style to this section to emphasize that is a sub-section.
  • Give the small image an id and the value "image-small" so we can uniquely identify it:
    <img src="image-small.png" alt="Applejack" id="image-small">
  • Give the larger image an id and the value "image-larger" so we can uniquely identify it.

  • body
  • use a dark gray background color
  • line-height of 1.5rem

  • div
  • white or very light background color
  • width of 400px
  • use auto margins to center the "page"
  • padding of 30px
  • border-radius of 10px
  • position: relative

  • h1
  • font-size of 4rem
  • line-height of 4rem
  • border that is 2px solid; pick a nice color
  • padding of 15px all around
  • border-radius of 5px
  • bottom-margin of 20px; all other margins should be 0px
  • text-align center
  • pick a nice background-color
  • pick a nice color for the text

  • h2
  • font-size of 2rem
  • font-weight should be normal instead of the default bold
  • border-bottom that is 1px solid gray

  • h3
  • text-transform to uppercase
  • font-size of 1.1rem
  • margin-bottom of 0px so it is closer to the paragraphs

  • p
  • text-align should be justify
  • margin of 0.5rem on top, margin of 0px on the other three sides

  • strong
  • color of text should be orange

  • em
  • font-family should be cursive
  • font-size of 1.2rem
  • color should be pink or purple

  • u
  • remove the underline using text-decoration
  • 1px solid black border
  • add some padding so the border is not too close to the text
  • border-radius of 5px
  • light yellow background-color

  • section
  • font-size of 0.8rem
  • border-left of 30px that is solid and gray
  • padding-left of about 15px

  • li
  • list-style should be square instead of round bullets

  • #image-small
  • position: absolute
  • top: 0px
  • left: 60px
  • height: 140px

  • #image-larger
  • position: absolute and try to figure out the top, right and height values to position it to match the final design.

Bonus

Read in Chapter 2 about background gradients and then add a linear-gradient to the background of the h1 tag.

TASK CHECK

Show your instructor your completed document and that it validates here: html5.validator.nu


3. HTML Tables & Lists

DELIVERABLE

Submit, your final.html and data.html file in Blackboard.

In the comment area of Blackboard put your partner's name.

Not finished?

The deliverable must be submitted in Blackboard by midnight on the day before your next scheduled lab meeting. If you wish to work alone, you can submit the deliverable yourself. However, you are encouraged to work with your partner and you can submit together. When submitting as a lab pair, be sure to include your partner's name in the comment area when you submit via Blackboard.

Do not share

Outside of lab, you are only permitted to work with your lab partner. Do not share your work with any other student.