Приглашаем посетить
Добычин (dobychin.lit-info.ru)

Workshop

Previous Page
Table of Contents
Next Page

Workshop

The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that follows.

Quiz

1:

How do you create a heading that is displayed in small caps?

2:

How do you create style rules that display every link on a page in the color red unless it is in hover mode, in which case it should change to green?

3:

How do you go about inserting a comment in CSS code?

4:

What is the significance of a generic style class?

Answers

A1:

<h1 style="font-variant:small-caps">My Heading</h1>

A2:

a:link, a:visited, a:active {

  color:red;
}

a:hover {
  color:green;
}

A3:

Just place the text of the comment between /* and */.

A4:

A generic style class allows you to establish a style class that can be applied to any elements, not just an element of a specific type. Elements that apply a generic style class must still support the style rules within the class, but otherwise there are no limitations on generic style classes. You can easily spot a generic style class in a style sheet because it will start with nothing more than a period (.).


Previous Page
Table of Contents
Next Page