
CSS ID vs. Class
Authored by Audrey Wei
Computers
9th - 12th Grade
Used 71+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
If you want to have more than one property for a CSS selector, what character separates them?
comma (,)
semi-colon (;)
colon (:)
dash (-)
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which is correct CSS syntax?
{ body; color=black;}
body: color= black
body {color:black;}
(body color is black)
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Select the code below that uses CSS to configure a background color of #000000 for a web page.
body { background-color: #000000; }
body { bgcolor: #000000; }
document { background-page: #000000; }
None of these
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What symbols go around the properties for each CSS selector?
< >
[ ]
{ }
( )
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which is the value in this CSS?
p {color: red;}
p
color
red
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which is the selector for a link?
a { }
link { }
href { }
a href { }
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which CSS code centers text?
p {align: center;}
p {text-align: center;}
p {align=center;}
p {center;}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?