CSS: An Overview
What is the correct way to comment in CSS?
/*Comments*/
em and rem can often be used interchangeably as font sizes. If the default size of text is 5px, what size is 2rem?
10px
If we want a red solid border of width 2px, what order should the values be in?
2px solid red
Use the ___tab to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.
<div> </div>
What is the correct syntax for linking a stylesheet to a HTML file?
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
Tag used for specifying logical areas within the paragraph or block code on a web page.
<span> </span>
What is a benefit of using the hexadecimal system for representing colours in css styling?
A greater range of colours can represented using a given number of characters
What does CSS stand for?
Cascading Style Sheets
Is the following a web safe color? #653456
No, color codes include only numbers and letters pairs 0-9 and A-F to make a hexidecimal number.
What is the declaration property for background color?
background-color
What is the benefit of using em rather than px?
em is a relative font measure, thus adjusts to default screen sizes
What is the declaraton property for setting font typefaces?
font-family
What is purpose of the semi-colon in CSS?
it tells CSS that one property-value pair is over
Identify the selector, property and value p { color: red; }
p, color, red
selector
part of the CSS line that selects what element to target with the property/value pair.
Which one of these is not a default font?
sans-cursive
external
style sheet is ideal when the style is applied to many pages; with this type of style sheet, you can change the look of an entire Web site by changing one file.
property
what appears before the colon in any line of CSS
value
what appears immediately after the colon in any line of CSS