Skip to content

5th Grade, McCrae, 03-23 – Web Design 6: Color

    1. There is one video for today:
      1. Mr. Smith's Instructions
    2. Objective:
      1. Students will be able to:
        1. Edit and save HTML code.
        2. Add color to their website.
    3. Announcements:
      1. The last day for any late work is Friday, March 13th!
        1. All work not completed by then will remain a zero.
        2. Any work assigned after then is due the same day.
      2. Previous lessons: Web Design 1: Intro to HTML, Web Design 2: Headings, Typing.com: J, F, and Space, Web Design 3: Bold and Italics, Field Trip Storyboard, Typing.com: U, R, and K, Web Design 4: Images. Typing.com: D, E, & I, Web Design 5: Links
  1. Today's Lesson: Web Design 6: Color
    1. Grading Rubric:
      4 Pts A text file named "style.css" is handed in.
      3 Pts The text file includes the starter code provided during the lesson.
      3 Pts The text file modifies the color choices to make the web page look nicer.
    2. We're going to continue with the work we did during the previous classes, spending some time adding to it.
      1. We're still doing work that's taught to 8th grade, but we are going at a slower pace than what is expected for them.
      2. This is one of those lessons where the video tutorial is super important. If you aren't in class, you NEED to watch it.
    3. We'll begin by opening a basic text editor.
      1. On the Windows computers in the lab, that's Notepad.
      2. If you're doing this on a Mac at home, that's TextEdit.
      3. Mr. Smith likes using Linux, he'll be using a program literally called "Text Editor."
      4. Mr. Smith's 8th graders use a fancier program called "VS Codium," which you're also allowed to use, but this is far from a requirement.
      5. (Even Chromebooks have text editors, though Mr. Smith doesn't use those.)
    4. Find and open your index.html file in your Documents folder. (Remember that we backed our work up to Google Drive last class, your work should be there if you're working from home.
    5. We're going to make a NEW text file and save it in the same folder as your index.html file. This new file should be called style.css.
      1. We're going to start off adding this code to the style.css document you've just created. Once you've done that, save your work and reload your index.html page in your web browser.
      2. body {
        background-color: #ffffff;
        color: #000000;
        }p {
        color: #000000;
        }
        strong {
        color: #000000;
        }

        em {
        color: #000000;
        }

        h1 {
        color: #000000;
        }

        h2 {
        color: #000000;
        }

        h3 {
        color: #000000;
        }

        a:link {
        color: #000000;

        }

        a:visited {
        color: #00ff00;

        }

        a:hover {
        color: #ff0000;

        }

        a:active {
        color: #0000ff;

        }

      3. Each color in this CSS file is shown with what's called a "Hex Code." (It's called "hex" because it has 6 characters.)
      4. These are hard to memorize, but fortunately we don't have to. A lot of tools we've used before have Hex code built into their color pickers!
      5. Change the color choices to make your website look nicer. ("Nice" is an opinion, so long as you change colors and I can still read your website you should be good.)
    6. If you break something, CTRL-Z is useful! If you need to start over, the starting code is right there to copy.
    7. Go to Canvas to hand in your css!
  2. This is an IN-CLASS assignment, NOT HOMEWORK. There are no extended deadlines for the remainder of this Quarter!