O'Reilly logo

Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test Your Knowledge

  1. Which directive do you use to import one style sheet into another (or into the <style> section of some HTML)?

  2. What HTML tag can you use to import a style sheet into a document?

  3. Which HTML tag attribute is used to directly embed a style into an element?

  4. What is the difference between a CSS ID and a CSS class?

  5. Which characters are used to prefix a) IDs and b) class names in a CSS rule?

  6. In CSS rules, what is the purpose of the semicolon?

  7. How can you add a comment to a style sheet?

  8. Which character is used by CSS to represent “any element”?

  9. How can you select a group of different elements and/or element types in CSS?

  10. How can you make one CSS rule of a pair with equal precedence have greater precedence over the other one?

See Chapter 18 Answers in Appendix A for the answers to these questions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required