CSS/Exam Questions

The following questions are to help you identify where you need more work or...

The questions are divided into beginner, intermediate and advanced sections.

Beginner
p{ color:#333333;} Here's an intro Here's my content I want to be blue too
 * 1) Write the CSS rule to achieve the following:
 * 2) Set the text colour of all paragraphs to #333333.
 * 3) Set the default fonts for your page to Arial as your first preference and Sans Serif as your second
 * 4) Set all h2 elements to use the size 2em
 * 5) Which CSS rule would make the content of the first division alone blue?

Intermediate

 * 1) What is the CSS selector used to select every element on the page (and why should you be careful using it?)
 * 2) Explain the values of the CSS display property (quite hard!)
 * 3) Discuss the pros and cons of a fixed-width layout versus a flexible layout.

Advanced

 * 1) Identify 2 new properties that were introduced with CSS2
 * 2) Identify 2 new properties that should be introduced with CSS3