LESSON 27: WEB-SAFE COLORS
- Study the index cards on Web-Safe Colors. I've included a hard copy of these
index cards, for your convenience.
Do worksheet item (W27.1). You may want to bookmark this page as a good source for viewing the web-safe colors.
- Be sure that you can answer all the following questions, which are fair game for quizzes and
tests.
- What is a "palette"?
- What is a "system palette"?
- What is the "web palette"?
- How many colors are in the web palette?
- Are the web-safe colors "safe" on UNIX terminals?
- What are some other names for the "web palette"? (Give at least three more names.)
- What is "color shifting"?
- Is it easy to recognize which colors are in the WEB PALETTE, from their
hexadecimal codes? Be sure to give a reason WHY.
- Is #33FF00 a web-safe color? Why or why not?
- Is #770033 a web-safe color? Why or why not?
- Is #123456 a web-safe color? Why or why not?
- What are the advantages to using only web-safe colors when designing
graphics and HTML pages?
- Continue reading in the Weasel book in Chapter 10, Formatting Text. In this lesson, you'll read about
the inline styles; so, you'll be reading pages 117 (bottom) to 123 (top) and then pages 128 (middle) to
133 (middle).
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 some of the code that you will write
in this section is deprecated.
- What is meant by an inline style?
- What does "abbr" in the tag
<abbr>
stand for?
- Write the code that specifies the abbreviation "MA" for "Massachusetts".
- Write the code that writes HTML IS FUN! in bold.
- Write the code to produce: BIG BIGGER BIGGEST
- Write the code that will produce exactly what you see here (which is some sample code):
<big>a big word</big>
- Write the code that will produce exactly what you see here: < big > a big word < /big >
- When the
<basefont>
tag appears in the head of the document, what does it apply to?
- When the
<basefont>
tag appears somewhere in the body of a document, what does it apply to?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does YYYY
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does MM
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does DD
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does hh
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does mm
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does ss
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does TZD
stand for?
- The standard date and time format for HTML is:
YYYY-MM-DDThh:mm:ssTZD
What does the T
after the DD
stand for?
- Represent the time August 28, 1958 in the
YYYY-MM-DDThh:mm:ssTZD
format.
- Represent the date and time August 28, 1958, 9:58 AM in the
YYYY-MM-DDThh:mm:ssTZD
format.
- What does "dfn" in the tag
<dfn>
stand for?
- Write the code for: "The word complement means to fill out; to complete."
(Here, the word "complement" is being defined.)
- What does "em" in the tag
<em>
stand for?
- How do most browsers render emphasized text?
- Is the
<font>
tag deprecated?
- Use the font tag to write your name in green Helvetica type, size 5, like this:
Carol Fisher
- Use the font tag to write your name in blue type, one size smaller than the default setting, like this:
Carol Fisher
- Use the
<basefont>
tag to set the default type to size 4; then, inside this text,
have your name appear two times bigger, like this:
Here is some text of size 4. Inside this text, the word
Carol is two sizes bigger!
- What does "i" in the tag
<i>
stand for?
- Suppose you're co-writing an article with a colleague, and it's very important that you keep track of revisions.
Suppose you initially had a sentence: "The quick brown fox jumps over the lazy dog."
On January 7, 2003, the word "very" was inserted, as follows:
"The very quick brown fox jumps over the lazy dog."
Write the code to do this.
- Suppose you're co-writing an article with a colleague, and it's very important that you keep track of revisions.
Suppose you initially had a sentence: "The quick brown fox jumps over the lazy dog."
On February 14, 2004, the word "lazy" was deleted, as follows:
"The quick brown fox jumps over the lazy dog."
Write the code to do this.
- What does "kbd" in the tag
<kbd>
stand for?
- Write the code to indicate that text should be entered from the keyboard by the user:
"Please type the letters "hbue" and
then press ENTER." Also note the extra spaces around "hbue".
- What is the difference between
<q>
and <blockquote>
?
- Write the code for the short quote:
Out of discipline comes flexibility.
- Write the code to format the following sample code:
<small>
This is small type.
</small>
- Write the code to produce: SMALL SMALLER SMALLEST
- Is
<span>
a block-level style or inline style?
- What is
<span>
usually used in conjunction with?
- What is the tag
<strong>
used for?
- Write the code to produce: (x2)5
- Write the code to produce: (x5)2
- What does "u" in the tag
<u>
stand for?
- Write the code to produce this phrase (where one word is underlined): I love chocolate!
- Do inline style tags add line breaks or extra space?
- Are closing tags required for inline style tags?
- What is a "logical" or "content-based" style?
- Give five examples of logical inline style tags.
- What is a "physical" style?
- Give five examples of physical inline style tags.
- What is the tag for strike-through text?
- Is
<abbr>
a logical or physical style?
- Is
<blink>
a logical or physical style?
- Is
<dfn>
a logical or physical style?
- Is
<i>
a logical or physical style?
- Is
<strong>
a logical or physical style?
- Is
<small>
a logical or physical style?
- Have any of the HTML logical inline style tags been deprecated?
- Have any of the HTML physical inline style tags been deprecated?
- Which of the tags
<div>
and <span>
is a block-level element?
- Which of the tags
<div>
and <span>
is an inline element?
- Is the
<font>
tag in keeping with the purist HTML philosophy of separating presentation and structure?
- Is the
<div>
tag deprecated?
- According to the author of the Weasel book, is the
<div>
tag likely to disappear any time soon, and why?
- Fill in the blanks:
The value of the size
attribute in the <font>
tag can be
any number from to ,
with being the default size. Size is
the largest, and size is the smallest. Size x+1 is about
percent than size x .
- Will "different word" be larger, smaller, or the same size as the surrounding words?
Some words with a <font size="+2">
different word</font>
here!
- Will "different word" be larger, smaller, or the same size as the surrounding words?
<font size=5>
Some words with a <font size="+2">
different word</font>
here!</font>
- Will "different word" be larger, smaller, or the same size as the surrounding words?
<font size=6>
Some words with a <font size="+2">
different word</font>
here!</font>
- Will "different word" be larger, smaller, or the same size as the surrounding words?
<font size=4>
Some words with a <font size="+2">
different word</font>
here!</font>
- When
<font>
tags are nested, are the effects of their relative sizes cumulative?
- Will "different word" be larger, smaller, or the same size as the surrounding words?
<basefont size=5>
<font size=6>
Words of size 5 with a <font size=+1>
different word</font>
inside!</font>
- Will "different word" be larger, smaller, or the same size as the surrounding words?
<basefont size=5>
<font size=7>
Words of size 5 with a <font size=+1>
different word</font>
inside!</font>
- What are the five generic font families that can be used in
<font face="fontlist">
?
- Identify the font family being used for the sentence below: serif, sans-serif, monospace, cursive, or fantasy
The quick brown fox jumps over the lazy dog.
- Identify the font family being used for the sentence below: serif, sans-serif, monospace, cursive, or fantasy
The quick brown fox jumps over the lazy dog.
- Identify the font family being used for the sentence below: serif, sans-serif, monospace, cursive, or fantasy
The quick brown fox jumps over the lazy dog.
- Identify the font family being used for the sentence below: serif, sans-serif, monospace, cursive, or fantasy
The quick brown fox jumps over the lazy dog.
- Identify the font family being used for the sentence below: serif, sans-serif, monospace, cursive, or fantasy
The quick brown fox jumps over the lazy dog.
THE QUIZ OVER THIS LESSON WILL CONSIST OF:
- (35 pts) Questions from the index cards and reading (see below).
There will be 45 randomly-chosen questions; you will cross off 10 questions.
The remaining 35 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.