Fall 2026
  • Discord
  • Gradescope
  • Syllabus

On this page

  • Start
  • Build Your Site
  • Check and Publish
  • Grading
  • Submit
  • FAQs

Project 0: Building a Webpage

Due: Wednesday, September 16 at 11:59pm · Worth: 34 points

You’ll turn the homepage from your HTML and CSS labs into a three-page website. Choose what you want your visitors to learn, organize the content with HTML, and use one stylesheet to give the pages a consistent design.

Start

Continue in the lab-homepage repository from the HTML and CSS labs. If you need a fresh copy, use the lab-homepage template to create your own repository, then clone it. Keep the visitor and topic you chose in the labs.

Build Your Site

Keep index.html as your homepage. Choose two other pages that would be useful to the same visitor. For a music guide, for instance, the homepage could introduce the music, a second page could compare albums, and a third could recommend songs to start with. Choose filenames that describe your pages.

Copy your existing HTML skeleton into the two new files and link all three to the same style.css. Add navigation links so a visitor can reach every page from every other page. Relative links such as href="albums.html" work both locally and on GitHub Pages. The navigation tutorial shows how to style those links.

Each page needs a title and a description in its <head>. Use <meta name="description" content="..."> for a sentence describing what visitors will find there. In the body, introduce the page with a main heading and a paragraph. Give each image alt text describing it.

Reuse the selectors, hover effects, and responsive rules from the CSS lab. Use a styled container to group related content and a styled <span> to highlight a useful detail somewhere on the site. Reuse a CSS class on at least two elements so changing that rule updates both. Choose content that benefits from a list and a comparison table.

Check and Publish

Open the site in a browser and click every navigation link from every page. Check that images load and that their alt text describes them. Resize the window to check the small-screen layout.

Commit and sync, then repeat those checks at your GitHub Pages address. You can also use the HTML validator and CSS validator to find mistakes. Publishing and visual inspection are practice checks. Gradescope scores the submitted files using the checklist below.

Grading

The project is worth 34 points. Each requirement earns its listed points independently. Use local linked stylesheets and the type, class, ID, hover, and media rules taught in class for the graded styling.

Across the Site

These features can appear on different pages.

  • At least three HTML files.

  • A file named index.html.

  • An external CSS file.

  • At least one image across the site.

  • All images have nonempty src and descriptive alt attributes.

  • A styled content container (div, section, article, or main).

  • A CSS class reused on at least two styled elements.

  • A styled <span> highlighting an inline detail.

  • An ordered or unordered list with at least three items.

  • A table with at least three rows and three columns.

On Every Page

Each line below is scored once for meeting the requirement on all pages.

  • A <link> to the stylesheet.

  • A nonempty <title>.

  • A styled navigation bar linking to every other page.

  • A nonempty meta description.

  • A nonempty <h1>.

  • A nonempty <p> introducing the page.

  • Working local links and asset paths, including links to page sections.

  • HTML that passes the grader’s syntax checks.

In the Stylesheet

  • A rule setting the color of links.

  • A :hover rule.

  • At least two class selectors and one ID selector.

  • A screen-size @media rule that changes styling for smaller screens.

  • CSS without malformed rules or declarations.

Submit

Commit and sync your HTML, CSS, and local assets. On Gradescope, choose GitHub and submit your repository and branch. Use relative links between your pages. If you use full URLs to your own site’s pages, include submission.toml with evidence.site_url set to your GitHub Pages address so the grader can resolve them.

FAQs

I changed my page locally. Why does the website still show the old version?

Saving a file changes your local copy. GitHub Pages serves the version published from your repository. Check that the changed file appears in your latest commit on GitHub, then check that the Pages deployment has finished. Once it has, reload the page.

Why does an image work on one page but break on another?

A relative path starts from the folder containing the HTML page. If index.html and about.html sit beside an images folder, both can use images/photo.jpg. A page inside a posts folder needs ../images/photo.jpg. Match the filename’s capitalization too; Photo.jpg and photo.jpg can be different files on the published site.

Why doesn’t my CSS rule change the element I selected?

First check that the page loaded your stylesheet. Then use your browser’s inspector to select the element and look at its styles. A crossed-out declaration was overridden by another rule. For example, an ID selector can override a class selector even when the class rule comes later in the file.