Border, Margin, and Padding Quiz

Border, Margin, and Padding Quiz

Professional Development

5 Qs

quiz-placeholder

Similar activities

Building a Portfolio with HTML and CSS

Building a Portfolio with HTML and CSS

Professional Development

10 Qs

html, css quiz

html, css quiz

6th Grade - Professional Development

10 Qs

Quiz CSS Dasar

Quiz CSS Dasar

Professional Development

10 Qs

CSS Quiz-I

CSS Quiz-I

11th Grade - Professional Development

10 Qs

CSS Selectors

CSS Selectors

Professional Development

10 Qs

Les bases de CSS

Les bases de CSS

Professional Development

6 Qs

CSS Descendants

CSS Descendants

Professional Development

10 Qs

CSS and JQuery

CSS and JQuery

Professional Development

9 Qs

Border, Margin, and Padding Quiz

Border, Margin, and Padding Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

ishami gaelle

Used 1+ times

FREE Resource

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