CSS ID vs. Class

CSS ID vs. Class

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

If you want to have more than one property for a CSS selector, what character separates them? Options: comma (,), semi-colon (;), colon (:), dash (-)

Back

semi-colon (;)

2.

FLASHCARD QUESTION

Front

Which is correct CSS syntax? Options: { body; color=black;}, body: color= black, body {color:black;}, (body color is black)

Back

body {color:black;}

3.

FLASHCARD QUESTION

Front

Select the code below that uses CSS to configure a background color of #000000 for a web page.
Options: body { background-color: #000000; }, body { bgcolor: #000000; }, document { background­-page: #000000; }, None of these

Back

body { background-color: #000000; }

4.

FLASHCARD QUESTION

Front

What symbols go around the properties for each CSS selector?

Back

{ }

5.

FLASHCARD QUESTION

Front

Which is the value in this CSS?
p {color: red;}

Back

red

6.

FLASHCARD QUESTION

Front

Which is the selector for a link? Options: a { }, link { }, href { }, a href { }

Back

a { }

7.

FLASHCARD QUESTION

Front

Which CSS code centers text? Options: p {align: center;}, p {text-align: center;}, p {align=center;}, p {center;}

Back

p {text-align: center;}

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?