Exercise Thursday

Goal: Practice everything we've learned so far by re-creating a real website using block and inline HTML elements, custom CSS, and Bootstrap classes. Keep an eye out for correct indentation, and descriptive Git commit messages in the correct tense.

Warm Up

  • What is the difference between a CSS class and id? When do we use one over another?
  • How do we ensure our stylesheet takes precedence over Bootstrap's? Where does this occur?


Wikipedia Rebuild

Now let’s use Bootstrap to rebuild the Wikipedia homepage. Use divs, spans, classes, floats, etc to style the page exactly as it appears in your browser. Feel free to use placeholder text and images in your project.

Wikipedia homepage

The goal of this exercise is to rebuild how the site looks not how it behaves, so your links don't need to link anywhere. To make a dummy link, use the # as the value of the href attribute on your link. For example: <a href=”#”>.

Make sure you are committing your changes appropriately and pushing to a remote repository on GitHub. Don’t rush through this. Being able to accurately rebuild a site is a great skill to have and will really help in understanding how CSS works to style your pages.

Further Exploration

  • Include a detailed README with author names, project name, a description, setup instructions, and copyright information.
  • If you finish early, go back to projects you worked on previously this section and add in Bootstrap.
  • Begin exploring the Bootstrap documentation. Try implementing elements we haven't explicitly covered here in our curriculum; whether in this site, or site from earlier this section.

Peer Code Review

  • Does the site utilize divs, spans, classes, floats, etc.?
  • Are Bootstrap classes used to style the page?
  • Is the code indented properly throughout?
  • Are commits made regularly with clear, descriptive messages that complete the phrase "It will..."?
  • Are styles applied with ids and classes? Are each used correctly?

Lesson 63 of 65
Last updated July 15, 2022