Cascading Style Sheets
Week One



Inline Commands



   I'm glad to be back in class to learn the finer points of CSS. I've been practicing a little bit on my own, with linked style sheets, but I'm glad that we will review the other types of style as well. I've found that once I had created a linked style sheet, I was reluctant to use anything else and so I will be glad to have the chance to practice inline, embedded, and imported styles too.

   The first assignment for this week is to answer the following questions:

  1. What are two good reasons to learn CSS?
    • CSS is easier to learn and write than HTML
    • You can make changes to an entire web site with a single linked style sheet
  2. Name the 4 different types of Style
    • Inline
    • Embedded
    • Linked
    • Imported
  3. What should always follow a value in your style declaration?
    • A semi-colon
  4. How would you create a heading that is blue, underlined, and 18 points in size?
    Let me see! The coding would look like this:
    <H2 STYLE="color:blue; text-decoration:underline; font-size:18pt; font-family:Arial;">Maybe like this?</H2>

    Maybe like this?

  5. When you have a font name that is more than one word, how do you handle that?
    • With single quotes.
  6. True or false? You don't have to worry about closing tags in your HTML when you're using CSS.
    • False. It is even more important to close tags when using CSS, so that the style command for that particular section is not left active. However, in certain instances there will be fewer tags to close. All this should become more clear in the next few weeks! In fact, I'm counting on that!

And that's all for this first week. As short as this page is, it's taken me hours :) I also have a question for the teacher: How do you validate this type of document? As HTML or CSS?

Valid HTML 4.0!


My LVS Pages