Test Your Knowledge
Which directive do you use to import one style sheet into another (or into the
<style>section of some HTML)?What HTML tag can you use to import a style sheet into a document?
Which HTML tag attribute is used to directly embed a style into an element?
What is the difference between a CSS ID and a CSS class?
Which characters are used to prefix a) IDs and b) class names in a CSS rule?
In CSS rules, what is the purpose of the semicolon?
How can you add a comment to a style sheet?
Which character is used by CSS to represent “any element”?
How can you select a group of different elements and/or element types in CSS?
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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access