Font size
Worksheets3.1-basic-CSS-review
Total questions: 10
Worksheet time: 20mins
What are the three ways of adding CSS to code? (select all that apply)
external CSS
inline CSS
write-in CSS
internal CSS
Which way of adding CSS to code is industry standard? (select one)
external CSS
inline CSS
write-in CSS
internal CSS
What property/value pair would change the color of text to red? (select one)
text-color: red;
color: red;
font-color: red;
font: red;
What is the margin on the right-side of the divs in this code?
div {
margin: 10px 25px 5px 30px;
}
(select one)
10px
25px
5px
30px
What code block would change the color of a link to red after it's clicked? (select one)
a:link {color: red;}
a:visited {color: red;}
a:hover {color: red;}
a:active {color: red;}
Which of the following specificity rules is accurate? (select one)
.CLASS beats #ID beats ELEMENT
ELEMENT beats .CLASS beats #ID
.CLASS beats ELEMENT beats #ID
#ID beats .CLASS beats ELEMENT
Which of the following specificity rules is accurate? (select one)
INLINE beats INTERNAL beats EXTERNAL
EXTERNAL beats INLINE beats INTERNAL
EXTERNAL beats INTERNAL beats INLINE
INTERNAL beats EXTERNAL beats INLINE
What are the parts of the box model? (select all that apply)
content
padding
border
margin
When/why would you use comments in code? (select all that apply)
to keep your code organized with labels
to explain what code does for future developers
to temporarily remove code from being active to debug issues
to sign your name to the code so what you write is copyrighted
Write in the correct keyword in the blank to make the div invisible in the following code:
div {
display: (a) ;
}
