LESSON 26: USING NUMBERS TO REPRESENT COLORS

  1. Study the index cards on Using Numbers to Represent Colors. I've included a hard copy of these index cards, for your convenience.
    Do worksheet item (W26.1). You'll probably want to bookmark this page as an excellent tool for working with colors!
    Do worksheet item (W26.2); this is a page that is provided by O'Reilly Publishers, the publisher of the Weasel book.
    Do worksheet item (W26.3), where you'll read about "dithering". Some of the questions below are from (W26.3).
  2. Be sure that you can answer all the following questions, which are fair game for quizzes and tests.
    1. Fill in the blanks: computer monitors display colors by combining          ,           and           light.
    2. What does the word "bit" mean in computer applications?
    3. What does the phrase "24-bit number" mean?
    4. Fill in the blank: the RGB system uses a          -bit number.
    5. How many different colors can be represented in the RGB color system?
    6. Use the symbols R, G, and B to illustrate the standard form for a binary RGB color.
    7. Use the symbols R, G, and B to illustrate the standard form for a hexadecimal RGB color.
    8. What is the color #FF0000?
    9. What is the color #00FF00?
    10. What is the color #0000FF?
    11. What is the color #000000?
    12. What is the color #FFFFFF?
    13. What is the color #FF00FF?
    14. What does "dithering" mean?
    15. How is it possible to create different shades of gray, using only two colors?
    16. Give a example of a place with dithering is commonly used.
    17. In printing, what is "dithering" usually called?
    18. In printing, what are shades of gray called?
    19. Write the hexadecimal RGB code for a brilliant red.
    20. Write the hexadecimal RGB code for a brilliant green.
    21. Write the hexadecimal RGB code for a brilliant blue.
    22. Write the binary RGB code for a brilliant red.
    23. What is the binary equivalent of the RGB code #00FF00 ?
  3. Continue reading in the Weasel book in Chapter 10, Formatting Text. In this lesson, you'll read about the block-level elements; so, you'll be reading pages 115–117 and then pages 126–128. Be able to answer all the following questions. Many of the questions ask you to write snippets of code; be sure that you test all your code using SimpleText and your favorite browser! Also, be aware that much of the code that you will write in this section is deprecated.
    1. Fill in the blanks in the following sentences:
      HTML was not developed as a method for designing how a page looks, but rather as a means of marking the           of a document. In an ideal world, all style and presentation would go in                    , leaving HTML markup to work as originally designed. The W3C has made these intentions clear by           in the HTML 4.01 specifications nearly all tags that control           in favor of                               controls.
    2. What is meant by a "block-level element" in HTML?
    3. What are the most commonly used block-level elements?
    4. Write the HTML code to format the address "4 Mt. Laurel Way, Monterey, MA 01245".
    5. What tag should be used for a lengthy quotation?
    6. How is a "blockquote" generally displayed?
    7. What does "div" in the tag <div> stand for?
    8. Use the <div> tag to right-align the words "HTML is fun!"
    9. How many heading levels are there?
    10. What are the names of the "heading" tags?
    11. Which is bigger, <h1> or <h6>?
    12. Suppose you want a heading centered, instead of left-aligned. Write the code to do this (without using the <center> tag).
    13. Suppose you want a heading right-aligned, instead of left-aligned. Write the code to do this.
    14. What does "p" in the tag <p> stand for?
    15. Write the code that will make a paragraph right-aligned, instead of left-aligned.
    16. If you don't include the ending </p> tag, how does a browser know when a previous paragraph has ended?
    17. What is the difference between <p> and <br>?


THE QUIZ OVER THIS LESSON WILL CONSIST OF:
Prepare for the quiz over this section by practicing below.
Questions are asked in random order.
You can generate a printable quiz with solutions.








How many problems would you like on the quiz? (40 max)