CSS Properties and Selectors

CSS Properties and Selectors

Assessment

Interactive Video

Computers, Design, Education, Instructional Technology

7th - 12th Grade

Hard

Created by

Emma Peterson

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using multiple classes in CSS?

To ensure compatibility with all browsers

To reduce the size of the CSS file

To increase the loading speed of a webpage

To apply multiple styles to a single element

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS selector is used to apply styles to elements with a specific class?

ID selector

Universal selector

Type selector

Class selector

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used in CSS attribute selectors to select elements with an attribute value that starts with a specific string?

Pipe (|) symbol

Asterisk (*) symbol

Dollar ($) symbol

Caret (^) symbol

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In CSS, which property is used to add a shadow effect to text?

text-shadow

shadow-effect

font-shadow

box-shadow

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to change the font style to italic?

font-variant

font-weight

font-style

text-decoration

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the CSS box model?

To apply animations

To describe the layout and spacing of elements

To set the font size

To define the color of text

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to control the transparency of an element?

visibility

opacity

display

transparency

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?

Discover more resources for Computers