Search Header Logo

Border, Margin, and Padding Quiz

Authored by ishami gaelle

Computers

Professional Development

Used 1+ times

Border, Margin, and Padding Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the margin property do in CSS?

It adds space between the border and the content inside the element.

It adds space between the element and other elements around it.

It adds a border around the element.

It changes the size of the element.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which inline CSS correctly applies a border to an element?

border: 2px solid black

border-width: 2px

border-color: black

border-style: black

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the padding property control in CSS?

The space between the border and the content inside an element.

The space between the element and other elements around it.

The thickness of the border.

The alignment of the text.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you set a margin of 10px on all sides of an element using inline CSS?

padding: 10px

margin: 10px

border: 10px

spacing: 10px

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which property adds space only to the top of an element?

padding-top: 20px

margin-top: 20px

Both A and B

None of the above

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?