CSS Rules Quiz

CSS Rules Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

CodeHS Advance HTML and CSS

CodeHS Advance HTML and CSS

9th - 12th Grade

18 Qs

Web Design CSS Study Set

Web Design CSS Study Set

9th - 12th Grade

18 Qs

HTML and CSS

HTML and CSS

9th - 12th Grade

20 Qs

CSS Review

CSS Review

9th - 12th Grade

12 Qs

Web Design #3

Web Design #3

9th - 12th Grade

15 Qs

Advanced HTML and CSS

Advanced HTML and CSS

9th - 12th Grade

15 Qs

HojasEstilos

HojasEstilos

11th Grade

15 Qs

Визуално оформление на уеб сайт с използване на CSS

Визуално оформление на уеб сайт с използване на CSS

11th Grade

10 Qs

CSS Rules Quiz

CSS Rules Quiz

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Gary Kopycinski

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a property used in the given CSS rule?
h1 {

font-weight: bold;

font-size: 28px;

color: red;

background-color: pink;

text-align center;

}

font-size

color

margin

background-color

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What color does the CSS class ".alert" set the text to?

.alert {

font-size: 60px;

color: red;

}


.all-clear {

font-size: 60px;

color: green;

}

Blue

Green

Red

Black

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the significance of using the same class name for different tags?

It allows for consistent styling

It creates multiple pages

It adds multiple images

It generates scripts

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct CSS syntax?

body:color=black;

{body:color=black;}

body {color: black;}

body = color: black;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to change the text color in CSS?

font-color

text-color

color

text-style

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to comment in CSS?

// This is a comment

/* This is a comment */

# This is a comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the CSS rule "p.alert" apply to?

All paragraph elements

All elements with the class "alert"

Only paragraph elements with the class "alert"

Only elements with the id "alert"

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?