wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML5

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hypertext Markup Language

b)

Hypertext Markup Lingo

c)

Happy Markup Language

d)

Who knows?!

2.

What is a HTML Element?

a)

It is the end tag

b)

It is the start tag

c)

Each of more than one hundred substances that cannot be chemically interconverted or broken down into simpler substances and are primary constituents of matter.

d)

A piece of a website, marked by a start tag and often closed with an end tag.

3.

Define HTML Tag

a)

The special set of characters that indicates the start and end of an HTML element and that element's type.

b)

A game you play outside.

c)

The standard markup language for documents designed to be displayed in a web browser.

4.

What does this <!DOCTYPE html> do?

a)

It is the start tag of the HTML document.

b)

The declaration defines that this document is an HTML5 document.

c)

It makes font large on a web page.

d)

It bolds font on a webpage.

5.

What does the <body> element do?

a)

It is the start tag for a HTML document.

b)

Defines the document's body, and is a container for all the visible contents

c)

Contains meta information about the HTML page

6.

Which element defines large heading?

a)

<h6>

b)

<large heading>

c)

<large>

d)

<h1>

7.

How are HTML images defined?

a)

<html image>

b)

<images>

c)

<img>

d)

<src>

8.

What type of tag is this: <!-- -->

a)

comments

b)

questions

c)

paragraph

d)

image

9.

<p> is a _______ tag.

a)

image

b)

paragraph

c)

filename

10.

You'd use <img src="" /> to ______.

a)

start a new website

b)

indent a paragraph

c)

log off your computer

d)

put an image on a page

11.

What should a HTML web page end with?

a)

</html>

b)

<head>

c)

</end>

d)

</body>

12.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

13.

Which of the following is the code for a paragraph to be blue?

a)

<td style=“background-color:blue;”>

b)

<h1 style=“font-size:60px;”>

c)

<p style=“color:blue;”>

d)

<tagname style=“property:value;”>

14.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
15.
When using a text editor, what file extension(s) must be used when saving as a web document?
a)
txt
b)
html or htm
c)
doc
d)
css
16.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
17.
Which line of code correctly creates a link to Amazon's website?
a)
<a ref=http://www.amazon.com>Amazon
b)
<href=http://www.amazon.com>Amazon<a>
c)
<a href="http://www.amazon.com">Amazon
d)
<a href="http://www.amazon.com">Amazon</a>
18.
Between which paired tags would the visible content of a webpage be displayed?
a)
<html></html>
b)
<head></head>
c)
<body></body>
d)
<title></title>
19.
http://www.google.com is an example of a what?
a)
URL
b)
IP address
c)
Browser
d)
Application
20.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
21.
The content of the web (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
22.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
23.
There simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
webmaster
24.
<html>
a)
Gives you structure and text
b)
Not needed when creating HTML sites
c)
Goes after the <h1>
d)
Goes after the <body>
25.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
26.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
27.

______ can be termed as a special keyword used inside a tag to specify additional information about the tag and customize it.

a)

Element

b)

Attribute

c)

custom

d)

canvas

28.

Which of the following audio format is supported by HTML5?

a)

.ogg

b)

.wav

c)

.mp3

d)

All of the above

29.

<body text="color"> allows us to:

a)

change the background color in HTML.

b)

change the entire text color in HTML

c)

change the color for selected text in HTML

d)

Both b) and c)

30.

Which character is used to indicate an end tag?

a)

>

b)

<

c)

/

d)

\

31.

How do you change the font of an element?

a)

A. font-family:

b)

B. font=

c)

C. f:

d)

D. None of the above

32.

The ______ attribute of <IMG> tag helps in displaying alternate name for the image when the cursor is hovered or the image is not loaded properly.

a)

alternate

b)

source

c)

alt

d)

alt text

33.

<body text="color"> allows us to:

a)

change the background color in HTML.

b)

change the entire text color in HTML

c)

change the color for selected text in HTML

d)

Both b) and c)

34.
There simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
webmaster
35.
Which of these should not be used in HTML5?
a)
<h6>
b)
<strong>
c)
<center>
d)
<head>
36.
Which of these tags should not be followed by a closing tag?
a)
<head>
b)
<img>
c)
<a>
d)
<table>
37.
Which of these is an HTML element?
a)
src
b)
img
c)
pic.jpg
d)
< >
38.
Which of these is an HTML attribute?
a)
table
b)
border
c)
tr
d)
td
39.
Which of these follows the rules of HTML5?
a)
<b><i>Hi</b></i>
b)
<p><em>Hi</p>
c)
<tr><b>Hi</b><tr>
d)
<h1><i>Hi</i></h1>
40.

The purpose of a ___________ ___________ is to read HTML documents and display them.

a)

HTML tag

b)

home page

c)

web browser