CSS Properties and Selectors

CSS Properties and Selectors

Assessment

Interactive Video

Computers, Design, Education, Instructional Technology

7th - 12th Grade

Practice Problem

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

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?