wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WD: Chapter 4 Exam

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

The < div > element:

a)

divides your web page into 3 equal parts

b)

divides numbers in math equations

c)

makes all of your elements bold

d)

marks a "division" in your web page

2.

The _________ element can be used to identify a block section and make sure the content appears on its own lines, but it does not add any extra styling by itself.

a)

< blockquote >

b)

< div >

c)

< span >

d)

< strong >

3.

What attribute does not do anything other than put a unique label on the container?

a)

The “identifier” attribute

b)

The “target” attribute

c)

The “id” attribute

d)

The “label” attribute

4.

Which of the following is NOT a use for a Comment?

a)

to help identify the ending tags that go with a particular attribute

b)

write notes to yourself in your code that wouldn’t be displayed in the browser

c)

write descriptive text to help someone else understand a section of code

d)

bold certain areas of text

5.

What is used to start and end a comment?

a)

"+" tag and end with "-" characters.

b)

"!!!" tag and end with "***" characters.

c)

"< !--" tag and end with "-- >" characters.

6.

You can type pretty much anything inside a comment except:

a)

asterisks (***)

b)

pound signs (###)

c)

double dashes (--)

d)

numbers

7.

What is the purpose of a “character reference” in HTML?

a)

Both of these are true

b)

To add symbols to your visible content such as < or > that have special meaning in HTML

c)

Neither of these is true

d)

To add symbols to your visible content that do not exist on the keyboard

8.

Which of the following is a correctly formatted character reference for the greater than (>) angle bracket?

a)

gt;

b)

&>;

c)

&gt

d)

& gt;

9.

What kind of area do you normally find at the bottom of a web page?

a)

A main content area

b)

A header

c)

A footer

d)

A navigation sidebar

10.

Which of the following elements are block elements?

a)

All of these are block elements

b)

< em >

c)

< strong >

d)

<p>

11.

Block elements can contain:

a)

Only inline elements

b)

Only paragraphs

c)

Both other inline and other block elements

d)

Only other block elements

12.

This kind of element does not add any space around the data within the element; it will just control how the data is displayed.

a)

Inline element

b)

Block element

c)

New line element

d)

Bold element

13.

Which of the following elements inline elements doesn’t do anything by itself, but can mark things for later styling?

a)

< div >

b)

< br />

c)

< span >

d)

< em >

14.

If your web site contains ____________, searching for problems and errors is much easier and faster.

a)

organized lines

b)

new code

c)

specific code

d)

clean code

15.

When you set code inside other code, in an orderly fashion, it is called:

Select one:

a)

Nesting

b)

Orderly code

c)

Inside code

d)

Organized lines

16.

Which of the following examples shows correctly written elements with one nested inside another?

a)

< body >< div >< /body >< /div >

b)

< body >< /body >< div >< /div >

c)

All of these will work just fine

d)

< body >< div >< /div >< / body >

17.

Which of the following examples shows an opening tag and “id” attribute with a value equal to “Banner”?

a)

< div id="Banner">

b)

< div >id=Banner< /div>

c)

< id value="Banner" >

d)

< div Banner="id">

18.

To create a list where the ordering is important, what element would you use?

a)

The < li >element

b)

The < ul > element

c)

The < ol > element

d)

The < blockquote > element

19.

What element is used to mark the text for each entry in the list?

a)

The < ul > element

b)

The < blockquote > element

c)

The < li >element

d)

The < ol > element

20.

Use this type of list when no item is more important than another, or you don’t want the items to be numbered.

a)

The < li > element

b)

The < blockquote > element

c)

The < ol > element

d)

The < ul > element