Worksheets[Hall] Intro to CSS
Total questions: 14
Worksheet time: 7mins
Which of these rules would select all of the <h2> elements on a page?
<h2> { color: red; }
h2 { color: red; }
#h2 { color: red; }
.h2 { color: red; }
What is the missing symbol?
;
:
.
#
How do you select an element with id 'demo'?
#demo
*demo
demo
.demo
What is the missing symbol?
;
:
=
""
How do you select an element with class 'demo'?
#demo
*demo
demo
.demo
What is the missing symbol?
;
:
.
#
Where is the correct place to add the <style></style> tags?
In the <head> section
In the <body> section
At the end of the document
Which can be used to identify MORE THAN ONE element?
id
class
What is the missing symbol?
;
:
=
""
How do you select an element with id 'unicorn'?
#unicorn
*unicorn
unicorn
.unicorn
How do you select an element with class 'unicorn'?
#unicorn
*unicorn
unicorn
.unicorn
What is the missing symbol?
;
:
=
""
Which of these rules would select all of the <p> elements on a page?
<p> { color: red; }
p { color: red; }
#p { color: red; }
.p { color: red; }
Which type of selector is unique with a page?
class
id
