What is the primary responsibility of CSS in a modern webpage?
describing the visual presentation and layout
In the CSS rule ‘p { color: blue; }’, what is the term for the ‘p’ part?
the selector
Where are CSS rules typically placed within an HTML file?
insider the <head> part within a <style> element</style>
What is the difference between the ‘padding’ and ‘margin’ properties?
padding is the spacing inside an element’s border, while margin is the spacing outside the border
Which CSS property would you use to change the typeface (e.g., Arial or Helvetica) of a paragraph?
font-family
In RGB color values, what color is represented by ‘rgb(0, 0, 0)’?
black
If you want to add 20 pixels of space specifically to the left side of a paragraph, which property should you use?
margin-left: 20px;
What is the result of setting ‘rgb(255, 0, 255)’?
Fuchsia (pink-purple)
A browser’s ‘default styling’ for a page with no CSS usually includes which of the following?
a white background with black, standardized text
Which CSS property should be used to change the color of the text itself within an element?
color
Define CSS
(Cascading Style Sheets)
The language used for describing the style and layout of a webpage.
Define selector
The part of a CSS rule that identifies which HTML element(s) to style (e.g., p, h1, strong)
Define property
The specific aspect of the element you want to change (e.g., font-size, background-color).
Define Declaration
The combination of a property and a value (e.g., color: red;).
Define RGB
(Red, Green, & Blue)
A color model that creates colors by combining Red, Green, and Blue light
Define hexadecimal
A base-16 numbering system often used as an alternative to RGB (e.g., #FFFFFF)
In the rule strong { padding: 10px; }, which part is the selector and which is the property?
selector: strong
property: padding
If you want to push two paragraphs further away from each other, would you increase their margin or their padding?
margin
What RGB value creates the color bright green?
rgb (0,255,0)
Where specifically in an HTML file should the <style> tag be placed?</style>
in the <head>
What is the difference between font-family and font-size?
Family handles the typeface/design, and size handles the physical dimensions.