Search Header Logo

CSS Recap

Authored by David Copeland

Computers

12th Grade

Used 2+ times

CSS Recap
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

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?