This is a test of CSS syntax meant as a review for advanced web design students to make sure they've not forgotten anything. Assume that the css you're looking at is in a separate. Css file that is linked correctly to an html page.
Make text in all divs and all paragraphs in this document be bright red
Make the background in all divs that are of the class "p" be bright red
Make the text inside any divs inside of any paragraph be bright red
Make the text inside any paragraph that is inside any div be bright red
Rate this question:
Span {color:#ff0000;}
Li {color:#ff0000;}
Li span {color:#ff0000;}
Div ul li span {color:#ff0000;}
Li, span {color:#ff0000;}
Rate this question:
Make the text inside any anchor tags that are inside either a div with the class "leftnav" or the class "bottomnav" have no text decoration
Make an anchor tag that is inside a div with the class "bottomnav" which is inside a div with the class "leftnav" have no text decoration
Make the text inside any anchor tags that are inside either a div with the ID "leftnav" or the ID "bottomnav" have no text decoration
All of the above
Rate this question:
A
B
C
D
Either a or c
Rate this question:
True
False
Rate this question:
Classes are for use with spans and ID's are for use with DIVs
ID's are supposed to be only used once per page but Classes can be used multiple times per page, and one element can have more than one Class but should have only one ID
Classes should be used only once per page, but ID's can be used as many times as you like on one page
ID's are better than Classes
Rate this question:
Spans are, by default, inline and DIVs are by default Block
DIVs are, by default, inline and SPANs are by default Block
There is no real difference
Spans can be inside DIVs but DIVs are not supposed to go inside spans
Both a and d
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.