Search Header Logo

CSS Intro

Authored by Muhanned Noman

Other

KG

Used 2+ times

CSS Intro
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS selector targets an element based on its position within a parent container?

the first-child selector

the last-child selector (correct)

the nth-child selector

the attribute selector

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS property is used to add padding to an element?

margin

outline

border

padding

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS property is used to change the background color of an element?

element-color

background-color

color

bg-color

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS property is used to change the font size of an element?

font-size

text-size

size

width

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS property is used to create a border around an element?

padding

outline

border

margin

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS selector targets all elements with a specific class?

the ID selector

the attribute selector

the tag selector (correct)

the class selector

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS property is used to center an element horizontally?

float

text-align

align-item

margin: 0

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?