wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Division Content & CSS Positioning

Total questions: 25

Worksheet time: 39mins

Name
Class
Date
1.

What does a class do?

a)

adds color to words

b)

adds style to specific elements

c)

adds style to a whole page

d)

adds a lot more work

2.

Inside a HTML document, where should you put the link tag to connect your HTML & CSS file?

a)

In the <body> section

b)

At the very end of the document

c)

In the <head> section

d)

At the very beginning of the document

3.

Which selector is used to style the whole web page?

a)

body

b)

head

c)

p

d)

a

4.

HTML attributes always appear

a)

in the opening tag

b)

in the closing tag

c)

between the tags

d)

after the closing tag

5.

If you want to design an element directly by inputting the style in the tag, which is the CSS way that you have to use?

a)

Inline CSS

b)

Internal CSS

c)

External CSS

d)

All of the above

6.

Style will come inside the <head> tag for

a)

Inline CSS

b)

Internal CSS

c)

External CSS

d)

All of the above

7.

In CSS, what is the symbol used to group CSS selectors together?

a)

Dash (-)

b)

Colon (:)

c)

Semicolon (;)

d)

Comma (,)

8.

If you want to have more than one property-value pair for a CSS selector, what character separates them?

a)

Dash (-)

b)

Colon (:)

c)

Semicolon (;)

d)

Comma (,)

9.

An element that is placed inside another element is called the _________ element.

a)

ancestor

b)

parent

c)

child

10.

HTML division content is used to achieve the following BUT

a)

Organize content easily

b)

Simplify styling process of elements

c)

Make a web page popular

11.

Based on the picture, what does the division content do?

a)

Change background of division content to pink

b)

Change background of body to pink

c)

Nothing

12.

In CSS, elements can be positioned using the _______, _______, _______, and _______ properties.

a)

overlap

b)

top

c)

left

d)

bottom

e)

right

13.

How do you select elements with the class name "green"?

(a)  

14.

In CSS, what is the symbol used to separate a property and a value?

(a)  

15.

Which HTML tag classifies your page into divisions? (Hint: The answer should be written as <element></element>)

(a)  

16.

What is the default position value for HTML elements?

(a)  

17.

In CSS, when an element value is set to be (a)   for the position property, it’s position is removed from the normal flow.

18.

In CSS, when an element value is set to be (a)   for the position property, it’s position is still maintained with the normal document flow.

19.

Complete the HTML comment tag with a missing symbol

(a)  

20.

Complete the CSS comment tag with a missing symbol.

(a)  

21.

What unit of measurement does CSS use for size?

a)

px

b)

%

c)

em

d)

All of the above

22.

Based on the picture, how many classes are involved in the division?

(a)  

23.

Based on the picture, state the class name(s) involved for the division. (Hint: Separate the answers using a comma [,] symbol)

(a)  

24.

Based on the picture, will the <p> elements be bolded and have a yellow background if the <div> that contains this style is not present?

(Answer “Yes” or “No”)

(a)  

25.

Based on the picture, what is the missing property inside the div element so that its contents are aligned to center?

(a)