wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS Properties

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

The CSS border properties allow you to specify the ___________ of an element's border.

a)

Width and style

b)

Style and color

c)

Color and style

d)

Style, Color and Width

2.

The ____________ property specifies what kind of border to display.

a)

border-style

b)

border-color

c)

border-width

d)

border-design

3.

The _________ property specifies the thickness of the four borders.

a)

border-style

b)

border-color

c)

border-width

d)

border-height

4.

The _______ property is used to set the color of the four borders.

a)

text-color

b)

border-color

c)

color

d)

bg-color

5.

What is the correct arrangement of the CSS Border - Shorthand property

a)

solid 5px red

b)

5px solid red

c)

color solid 5px

d)

5px red solid

6.

The ____________ are used to create space around elements, outside of any defined borders.

a)

Margin

b)

Padding

c)

Border

d)

Box Model

7.

You can set the margin property to ________ to horizontally center the element within its container.

a)

auto

b)

length

c)

%

d)

inherit

8.

If the margin property has one value:

margin: 25px;

a)

all four margins are 25px

b)

top and bottom margins are 25px

c)

right and left margins are 50px

d)

Only the top margin will have a value

9.

If the margin property has two values:

margin: 25px 50px;

a)

top and bottom margins are 25px, right and left margins are 50px

b)

top and bottom margins are 50px, right and left margins are 25px

c)

top margin is 25px while bottom margin is 50px

d)

right margin is 25px while left margin is 50px

10.

The ___________ is used to create space around an element's content, inside of any defined borders.

a)

Margin

b)

Padding

c)

Border

d)

Box Model

11.

If the padding property has one value:

padding: 50px;

a)

all four paddings are 50px

b)

top and bottom paddings are 50px

c)

right and left paddings are 25px

d)

Only the top padding will have a value

12.

If the padding property has two values:

padding: 25px 50px;

a)

top and bottom paddings are 25px, right and left paddings are 50px

b)

top and bottom paddings are 50px, right and left paddings are 25px

c)

top padding is 25px while bottom padding is 50px

d)

right padding is 25px while left padding is 50px

13.

property : Padding

a)

A shorthand property for setting all the padding properties in one declaration

b)

Sets the bottom and top paddings of an element

c)

Sets the left and right paddings of an element

d)

Adding space around the border

14.

The CSS box model is essentially a box that wraps around every HTML element. It consists of:

a)

margins, borders, padding, and the actual content.

b)

margins, padding, and the actual content.

c)

borders, padding, and the actual content.

d)

margins, borders, and padding

15.

The box model allows us to add a border around elements, and to define space between elements.

a)

True

b)

False