wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS Box Model

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

HTML elements are:

a)

rectangular boxes

b)

circles

c)

imaginary

d)

quadrants

2.

All of the following are a part of the box model EXCEPT

a)

radius area

b)

padding area

c)

margin area

d)

content area

3.

Which CSS property below is a part of the box model?

a)

align

b)

width

c)

line-height

d)

color

4.

What is the area between the content and the border?

a)

padding

b)

margin

c)

height

d)

width

5.

What is the outermost area of the CSS Box Model?

a)

margin

b)

padding

c)

border

d)

width/height

6.

Which answer adds 10px of padding to the top and left, and 5px of padding to the bottom and right?

a)

padding: 10px, 5px, 5px, 10px;

b)

padding: 10px, 10px, 5px, 5px;

c)

padding: 10px 5px 5px 10px;

d)

padding: 10px 10px 5px 5px;

7.

Which of the following will add 3px to the margin for all four sides?

a)

margin: 3px;

b)

margin: 3px 3px 3px 3px;

c)

margin: 3px 3px;

d)

all of them

8.

Which of the following is NOT a border property?

a)

type

b)

style

c)

width

d)

color

9.

Which of the following would create the border in this image?

a)

border: solid 3px red;

b)

border: solid 3px red; border-right: dashed 3px red;

c)

border: solid 3px red; border-right: dashed 3px;

d)

border: solid 3px red; border-left-style: dashed;

10.

Which of the following will add 20px of padding ONLY to the bottom of an element?

a)

bottom-padding: 20px;

b)

padding: 20px 0;

c)

padding: 0 20px 0 0;

d)

padding-bottom: 20px;

11.

Which below refers to the font fallback system?

a)

*{font: 4em Arial;}

b)

body{font-family: Arial;}

c)

h1{font-family: Arial, Century Gothic, Polly, Sans Serif;}

d)

*{font-style: normal;}

12.

What order is padding defined?

a)

top, right, bottom, left

b)

top, left, bottom, right

c)

right, left, top, bottom

d)

top, bottom, right, left

13.

What are the two types of values you can use to define a border-radius?

a)

px, %

b)

px, em

c)

pica, inches

d)

%, pica

14.

The border-radius property does what to the element?

a)

It rounds the corners on elements

b)

It sharpens the corners on elements

c)

Nothing, it only affects the margins

d)

It adds small graphics on the corners of elements

15.

True/False

To set the minimum width of a box I use


max-width

a)

True

b)

False

16.

How much space do BLOCK elements take up?

a)

Entire width of screen

b)

As little width as possible

c)

Entire width AND height of screen

17.
What are the following?
dashed
dotted
solid
a)
Border styles
b)
Margin styles
c)
Padding styles
d)
html element style
18.

What order in shorthand declarations are borders established?

a)

width, style, color

b)

color, width, style

c)

style, color, width

d)

style, width, color

19.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
20.

What is the correct HTML for referring to an external style sheet?

a)

<link rel="stylesheet" href="mystyle.css">

b)

<stylesheet>mystyle.css</stylesheet>

c)

<style src="mystyle.css">