CSS Padding, Margins, and Borders Quiz

CSS Padding, Margins, and Borders Quiz

9th Grade

20 Qs

quiz-placeholder

Similar activities

HTML/ CSS

HTML/ CSS

7th - 11th Grade

15 Qs

Grade 9 - ICT Quiz

Grade 9 - ICT Quiz

9th Grade

20 Qs

CodeHS Advanced HTML/CSS Review

CodeHS Advanced HTML/CSS Review

9th - 12th Grade

15 Qs

HTML and CSS intermediate level

HTML and CSS intermediate level

9th - 12th Grade

24 Qs

About HTML and CSS

About HTML and CSS

9th - 12th Grade

15 Qs

TECH SUMMER CHALLENGE AGE 13-17

TECH SUMMER CHALLENGE AGE 13-17

9th - 12th Grade

25 Qs

FWPDD Final Exam Study Guide Part Two

FWPDD Final Exam Study Guide Part Two

9th - 12th Grade

25 Qs

CSS AV.3

CSS AV.3

1st - 12th Grade

20 Qs

CSS Padding, Margins, and Borders Quiz

CSS Padding, Margins, and Borders Quiz

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Keith Lavigne

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of padding in CSS?

To create space around an element's content, inside of any defined borders.

To create space between the element's border and the surrounding elements.

To define the width of an element.

To change the background color of an element.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to set the space between the content and the border of an element?

margin

padding

border-spacing

border

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Noah is designing a webpage and wants to set a margin of 10 pixels on all sides of a container element. How can he achieve this?

margin: 10px;

padding: 10px;

border: 10px;

margin: 10px 0;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hannah is designing a website and wants to add a border to a box. Which of the following is a correct way to set a border in CSS?

border: 1px solid black;

border: solid black 1px;

border: black 1px solid;

border: 1px black solid;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the CSS property 'margin' do?

It sets the space around the content inside the border.

It sets the space outside the border of an element.

It sets the width of the border.

It sets the color of the border.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct CSS to set a top margin of 20px.

margin-top: 20px;

padding-top: 20px;

border-top: 20px;

margin: 20px top;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Isla is designing a webpage and wants to create space between different sections of her content. Which CSS property should she use?

padding

margin

border

spacing

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?