HTML and CSS Reference
In-Depth Information
Objective 4.6: Review
Correct answer:
A
1.
Correct:
This is the correct syntax specifying the first paragraph child of the footer
element to have a smaller font.
A.
Incorrect:
The p.firstchild is not the correct syntax. It would need to be
p:first-child.
B.
Incorrect:
The colon after the footer is not correct syntax.
C.
Incorrect:
The => notation is not the correct syntax.
D.
Correct answer:
B
2.
Incorrect:
Styles cannot be nested inside each other in this way.
A.
Correct:
It is correct to first specify the H1 style, then specify the H1 styles for
H1 elements that are beneath an article element.
B.
Incorrect:
This will make all H1 elements italic.
C.
Incorrect:
This will make all H1 elements italic as the comma after article creates a
list of elements to apply the styles to.
D.
Correct Answer:
3.
aside {
height:100px;
width:50px;
border: 2px solid black;
transform: skew(-5deg);
box-shadow: 5px 5px;
}