Fall 2026
  • Discord
  • Gradescope
  • Syllabus

On this page

  • Start
  • Style your page
  • Check and submit

Lab: Dress It Up

Due: Wednesday, September 16 at 11:59pm (one week after it is assigned) · Worth: 4 points

CSS controls how a webpage looks. You’ll add a stylesheet to the homepage you built in the HTML lab and adjust the layout for people reading it on a phone.

Start

Open the lab-homepage repository from the HTML lab. You will edit style.css and its linked index.html. If you need another local copy, clone your own repository.

Style your page

Use selectors to decide which elements share a style. Give each required rule at least one declaration. The CSS reading has examples of selectors, hover effects, and media queries.

  • Link index.html to the external file style.css.

  • Write CSS that parses without errors.

  • Add a type selector with at least one declaration.

  • Add a class selector whose complete rule matches an element on your page.

  • Add an ID selector whose complete rule matches one element with that unique ID.

  • Add a :hover rule.

  • Add an @media rule using min-width or max-width.

Check and submit

Open the page in a browser. Hover over the element you styled, then resize the window above and below your media-query width to check both layouts.

Commit and sync, then open Settings → Pages on GitHub. Choose Deploy from a branch, your default branch, and /(root). After deployment finishes, open Visit site and check the published page. The publishing guide covers missing pages and delayed updates.

Validate your stylesheet with the CSS validator. Keep the site live for Project 0.

Commit and sync index.html, style.css, and local assets. On Gradescope, choose GitHub and submit lab-homepage and the branch containing your work. The submission guide explains resubmission.