CSS Recap

CSS Recap

12th Grade

40 Qs

quiz-placeholder

Similar activities

RPL-Web-02 (Web)

RPL-Web-02 (Web)

12th Grade - University

35 Qs

HTML div span ID class

HTML div span ID class

12th Grade

41 Qs

Code.org Unit 2 Web Development

Code.org Unit 2 Web Development

6th - 12th Grade

35 Qs

ECS Semester 1 Review 24/25

ECS Semester 1 Review 24/25

9th - 12th Grade

45 Qs

Unit #2: HTML Styling

Unit #2: HTML Styling

12th Grade

45 Qs

Microsoft Expression Units J, K, and M

Microsoft Expression Units J, K, and M

9th - 12th Grade

40 Qs

Organizing My Website Content using Flexbox

Organizing My Website Content using Flexbox

8th Grade - University

40 Qs

GR9COMPUTERQUIZ3.0

GR9COMPUTERQUIZ3.0

9th Grade - University

45 Qs

CSS Recap

CSS Recap

Assessment

Quiz

Computers

12th Grade

Hard

Created by

David Copeland

Used 2+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does CSS stand for?

Cascading Style Sheets

Creative Style System

Computer Style Sheets

Common Style Syntax

Answer explanation

CSS stands for Cascading Style Sheets, which is a stylesheet language used to describe the presentation of a document written in HTML or XML. The other options do not accurately represent what CSS stands for.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to change the background color?

bgColor

background-color

color

background

Answer explanation

The correct property to change the background color in CSS is 'background-color'. 'bgColor' is outdated, 'color' changes text color, and 'background' is a shorthand that can include more than just color.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you apply a class to an element in CSS?

.classname

#classname

<classname>

classname

Answer explanation

.classname is the correct way to apply a class to an element in CSS. The dot (.) indicates that you are selecting a class. The other options, such as #classname (for IDs) and (not valid), are incorrect.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of the position property?

fixed

relative

absolute

static

Answer explanation

The default value of the position property in CSS is 'static'. This means that elements are positioned according to the normal flow of the document, without any special positioning applied.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property controls the text size?

font-style

font-size

text-style

text-size

Answer explanation

The correct property to control text size in CSS is 'font-size'. This property allows you to set the size of the text, while 'font-style' affects the style (like italic), and 'text-style' and 'text-size' are not valid CSS properties.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you select an element with the ID "header"?

#header

.header

header#

header

Answer explanation

To select an element with the ID 'header', you use the syntax '#header'. The '#' symbol indicates that you are targeting an ID, making this the correct choice. The other options do not correctly reference an ID.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to align text to the center?

align

text-align

vertical-align

justify

Answer explanation

The correct property to align text to the center is 'text-align'. This CSS property specifically controls the horizontal alignment of text within an element, allowing for options like left, right, center, and justify.

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?