XML

Workshop

The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1.

What is the purpose of an element type selector?

2.

How does the block value differ from the inline value in the display property?

3.

How do you associate an external CSS style sheet with an XML document?

4.

How would you specify that a style rule is supposed to indent the first line of a paragraph by 6 centimeters?

Quiz Answers

1.

An element type selector selects an element of a given type and applies a style or set of styles to it. This represents the simplest approach to using CSS because there is a one-to-one mapping between element types and styles.

2.

When used with the display property, the block value results in an element being placed on a new line by itself, whereas the inline value places the element next to the content immediately preceding it.

3.

The xml-stylesheet processing instruction is used to associate an external CSS style sheet with an XML document.

4.

To specify that a style rule is supposed to indent the first line of a paragraph by 6 centimeters, you would use the style setting text-indent:6cm.

Exercises

1.

Modify the news.css style sheet so that the story text is displayed with a gray background. Hint: This requires you to modify the style rule for the p element.

2.

Modify the news.css style sheet so that the letter spacing of the headline is wider than normal.

by BrainBellupdated
Advertisement: