LESSON 26: USING NUMBERS TO REPRESENT COLORS
- 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).
- Be sure that you can answer all the following questions, which are fair game for quizzes and
tests.
- Fill in the blanks: computer monitors display colors by combining ,
and light.
- What does the word "bit" mean in computer applications?
- What does the phrase "24-bit number" mean?
- Fill in the blank: the RGB system uses a -bit number.
- How many different colors can be represented in the RGB color system?
- Use the symbols R, G, and B to illustrate the standard form for a binary RGB color.
- Use the symbols R, G, and B to illustrate the standard form for a hexadecimal RGB color.
- What is the color
#FF0000
?
- What is the color
#00FF00
?
- What is the color
#0000FF
?
- What is the color
#000000
?
- What is the color
#FFFFFF
?
- What is the color
#FF00FF
?
- What does "dithering" mean?
- How is it possible to create different shades of gray, using only two colors?
- Give a example of a place with dithering is commonly used.
- In printing, what is "dithering" usually called?
- In printing, what are shades of gray called?
- Write the hexadecimal RGB code for a brilliant red.
- Write the hexadecimal RGB code for a brilliant green.
- Write the hexadecimal RGB code for a brilliant blue.
- Write the binary RGB code for a brilliant red.
- What is the binary equivalent of the RGB code #00FF00 ?
- 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 115117 and then pages 126128.
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.
- 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.
- What is meant by a "block-level element" in HTML?
- What are the most commonly used block-level elements?
- Write the HTML code to format the address "4 Mt. Laurel Way, Monterey, MA 01245".
- What tag should be used for a lengthy quotation?
- How is a "blockquote" generally displayed?
- What does "div" in the tag
<div>
stand for?
- Use the
<div>
tag to right-align the words "HTML is fun!"
- How many heading levels are there?
- What are the names of the "heading" tags?
- Which is bigger,
<h1>
or <h6>
?
- Suppose you want a heading centered, instead of left-aligned. Write the code to do this (without using
the
<center>
tag).
- Suppose you want a heading right-aligned, instead of left-aligned. Write the code to do this.
- What does "p" in the tag
<p>
stand for?
- Write the code that will make a paragraph right-aligned, instead of left-aligned.
- If you don't include the ending
</p>
tag, how does a browser know when
a previous paragraph has ended?
- What is the difference between
<p>
and <br>
?
THE QUIZ OVER THIS LESSON WILL CONSIST OF:
- (3 pts) Show me that you've marked the answers to all the questions in your text book.
- (22 pts) Questions from the index cards and reading (see below).
There will be 30 randomly-chosen questions; you will cross off 8 questions.
The remaining 22 questions are worth 1 point each.
Prepare for the quiz over this section by practicing below.
Questions are asked in random order.
You can generate a printable quiz with solutions.