wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web 101 Assessment

Total questions: 20

Worksheet time: 14mins

Name
Class
Date
1.

Which tags go around the entire HTML Document?

a)

<html></html>

b)

<body></body>

c)

<content></content

d)

<stuff></stuff>

2.

Which header tag would display the largest text?

a)

<h3></h3>

b)

<h1></h1>

c)

<h6></h6>

d)

<h4></h4>

3.

What value goes in the href attribute of an anchor tag?

a)

Your name

b)

The path to the image

c)

The text to display

d)

The URL for the link

4.

How does a browser know that a file is a webpage?

a)

It is opened in the browser

b)

The filename ends with .html

c)

It appears with a browser logo next to it

d)

It contains the <html></html> tag

5.

Which of the following is an IMPROPER set of HTML tags?

a)

<h1</h1>

b)

<p></p>

c)

<img />

d)

<ul><li></li></ul>

6.

Which of the following properly sets the src attribute?

a)

<a src="http://google.com">Google</a>

b)

<iframe src>http://weather.gov</iframe>

c)

<img src="http://image.com/image.jpg" />

d)

<img>src="http://image.com/image.jpg"</img>

7.

What is the relationship between the ul element and the li element?

a)

The ul is the child of the li

b)

The ul is the grandparent of the li

c)

The ul is a sibiling to the li

d)

the ul is the parent of the li

8.

What is the relationship between the td and the tbody elements?

a)

The td is the direct child of the tbody

b)

The td is the cousin of the tbody

c)

The td is the grandparent of the tbody

d)

The td is the grandchild of the tbody

9.

What file extension do you need for HTML files?

a)

.css

b)

.js

c)

.txt

d)

.html

10.

In CSS, which selector would you use to select a paragraph with a class of "bright"?

a)

.bright

b)

#bright

c)

bright.p

d)

p bright

11.

Which Bootstrap class would you use to make a div appear as a large banner header?

a)

jumbotron

b)

dirigible

c)

banner

d)

large

12.

Which Bootstrap class would you use on four columns that will each take up equal space in a row?

a)

col-md-4

b)

col-md-3

c)

col-md-2

d)

col-md-6

13.

In CSS, which selector would you use to select an image with an id of "footer"?

a)

img

b)

footer.img

c)

#footer

d)

.footer

14.

Responsive Web Design is an approach to web design that...

a)

Focuses on responding efficiently and effectively to user input

b)

Makes web pages render well on a variety of devices

c)

Defines special states for HTML elements

d)

Updates styles when a user interacts with them

15.

How would you create a single-line text box in HTML?

a)

<input type="checkbox">

b)

<textbox></textbox>

c)

<text type="input"></text>

d)

<input type="text">

16.

Which of the following is a proper closing tag?

a)

</element>

b)

<element/>

c)

<element>

d)

/<element>

17.

What does a CSS selector do?

a)

selects the value for a style

b)

sets the background color

c)

specifies the elements to style

d)

defines the type of style to apply

18.

Which CSS selector will style all paragraph elements?

a)

h1

b)

.p

c)

paragraph

d)

p

19.

Which of the following properly sets the id attribute on the div?

a)

<div>id="my-div"</div>

b)

<div id="my-div"></div>

c)

<div id=my div></div>

d)

<div class="my-div"></div>

20.

How would you change the background color of a webpage in CSS?

a)

p { background-color: black; }

b)

.body { background color: black; }

c)

body { color; black }

d)

body { background-color: black; }