CSS Syntax Flashcards
1
Q
What is the purpose of CSS?
A
CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.
2
Q
Describe the syntax of a CSS rule-set.
A
- The CSS rule-set consists of a selector and a declaration block.
- The selector points to the the HTML element you want to style.
- The declaration block contains one or more declarations separated by semicolons.
- Each declaration includes a CSS property name and value, separated by a colon.
- Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.