wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

html Assessment

Total questions: 70

Worksheet time: 3610secs

Name
Class
Date
1.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
2.
Which of the following is the largest heading? 
a)
h2
b)
h3
c)
h4
d)
h6
3.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
4.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
5.
HTML stands for...
a)
Hyper Text Markup Language
b)
High Tech Marking Language
c)
High Tech Modem Language
d)
Hyper Tech Markup Lexicon
6.
Which is the correct way of defining an HTML5 document?
a)
<!DOCTYPE html>
b)
<!DOCTYPE HTML5>
c)
<!DOCTYPE html "PUBLIC">
d)
<DOCTYPE html>
7.
What is the correct HTML for creating a hyperlink?
a)
<a href="http://www.w3schools.com">W3Schools</a>
b)
<a url="http://www.w3schools.com">W3Schools.com</a>
c)
<a>http://www.w3schools.com</a>
d)
<a name="http://www.w3schools.com">W3Schools.com</a>
8.
Defines a paragraph
a)
<pr>
b)
<p>
c)
<para>
d)
<par>
9.
<a>
a)
Defines an article tag
b)
Defines an HTML link
c)
Defines the link destination 
d)
Defines the area
10.
In HTML, a color can be specified by using what?
a)
Colour name
b)
RGB value
c)
HEX value
d)
All of these
11.
Google, Bing and Yahoo are all examples of what?
a)
Web browsers
b)
Search engines
c)
Web engines
d)
Text editors
12.
HTML5 incorporates three kinds of code: HTML, CSS and Javascript. Which of these provides the structure to a webpage?
a)
Javascript
b)
HTML
c)
CSS
d)
None
13.
What is an HTML element?
a)
The starting tag
b)
The ending tag
c)
The content between the tags
d)
Everything from start to end tag
14.
HTML attributes always appear where?
a)
In the opening tag
b)
In the closing tag
c)
Between the tags
d)
After the closing tag
15.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
16.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
17.
Which is the correct HTML element for underlining text?
a)
<ul>
b)
<uline>
c)
<u>
d)
<under>
18.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^
19.

In a <table>, what does the <tr> tag do?

a)

it defines the table row

b)

It displays the data for that cell on screen

c)

It doesn't do anything

d)

Makes the data in that cell bold like a heading

20.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
21.
Which of the following is the largest heading? 
a)
h2
b)
h3
c)
h4
d)
h6
22.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^
23.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
24.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
25.
The content of the web (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
26.
The following tag will show a bulleted list
a)
<ul>
b)
<ol>
c)
<li>
d)
<list>
27.

Which is the correct way to insert an image

a)

<img="image.jpg"/>

b)

<img src="image.jpg"/>

c)

<image.jpg>

d)

<img src:image.jpg>

28.

Which tag is used in ordered lists and unordered lists to define a list item

a)

<b>

b)

<i>

c)

<p>

d)

<li>

29.

Which code below is correct for a hyperlink

a)

<a herf="https://google.com">Click Me</a>

b)

<a>Click Me>"https://google.com"</a>

c)

<a href="https://google.com">Click Me</a>

d)

<a>"https://google.com"Click Me</a>

30.

Which of the following BEST explains the difference between a <p> tag and a <br> tag?

a)

The <br> tag produces a blank line, while the <p> tag does not

b)

The <p> tag produces a blank line, while the <br> tag does not

31.
The <strong> tag will ___________ the text.
a)
Capitalize
b)
Bold
c)
Italicize
d)
Underline
32.

What tags start and end a paragraph tag?

a)

<p> </p>

b)

<h6> </h6>

c)

<ul> </ul>

d)

<h1> </h1>

33.

What tag starts and ends a list?

a)

<p> </p>

b)

<ol> </ol>

c)

<ul> </ul>

d)

<li> </li>

34.
</p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
35.
</body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
36.
</html>
a)
Found after </h1>
b)
Found after </style>
c)
Found after </body>
d)
Found at bottom of written code
37.

HTML is...

a)

The programming language used to tell websites what to look like

b)

It is a piece software used to make games

c)

It is the programming language used to design posters

38.
Which symbol go around tags like...
h1
p
a href
body
a)
" "
b)
{ }
c)
[ ]
d)
< >
39.
True or False
<h1> is bigger than <h2>
a)
True
b)
False
40.
What is wrong with this <style> sheet?
body{background-colour=red}
a)
wrong html <tag>
b)
wrong colour
c)
wrong spelling
d)
wrong brackets used
41.
What is wrong with this <style> sheet?
body[background-color=red]
a)
wrong html <tag>
b)
wrong colour
c)
wrong spelling
d)
wrong brackets used
42.
What <tag> would correctly display the an image of a cat wearing a hat saved as: cathat09.jpg?
a)
<img src="cathat08.jpg">
b)
<img src ="cathat09.png"
c)
<img src ="cathat09">
d)
<img src="cathat09.jpg">
43.
Spot the syntax error with the code below...
<p> Hanna had won the battle <p>
a)
tags not opened or closed correctly
b)
not the correct tag 
c)
spelling error
d)
no errors would work.
44.
Spot the syntax error with the code below...
<h3> Section A </h3>
a)
tags not opened or closed correctly
b)
not the correct tag 
c)
spelling error
d)
no errors would work.
45.

Which is the proper way to write an h1 tag

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

46.

Which of the following matches the output from the HTML code below?

<p><u>Hello <i>there<i><u><p>

a)

Hello there

b)

Error

c)

Hello there

d)

Hello there

47.

​ ​ (a)   languages are used to create websites. The most common Markup Language used is ​ ​ (b)   . HTML uses tags to describe the ​​ (c)   of the webpage. They are made up of a series of ​ (d)   that tell the Web browser how to display its information. Tags come in pairs. Each pair will have an ​ (e)   tag.

Choose from the below words
Markup
tags
opening and closing
HTML
structure
48.

Match the following Part 2

a)

What tag contains all the contents that is to be shown on a website?

1.

<body>

b)

What tag contains the title and meta information of the document?

2.

<head>

c)

What tag identifies a paragraph?

3.

<p>

d)

What tag states you are using HTML?

4.

<html>

49.

What tag contains the title and meta description of the document?

a)

<title>

b)

<head>

c)

<body>

d)

<h>

50.

Match the following Part 3

a)

What tag is used to insert an image?

1.

<img src = "..." >

b)

What tag is used to insert a link?

2.

<a href = "..."> ... </a>

c)

What tag is used to insert a video?

3.

<iframe ...></iframe>

d)

What tag is used for an ordered list?

4.

<ol> ... </ol>

e)

What tag is used for an unordered list>

5.

<ul> ... </ul>

51.
What <tag> is the correct tag for displaying the heading "The Facebook"?
a)
<h1> The </h1>Facebook
b)
<p> The Facebook </p>
c)
<style> The Facebook </style>
d)
<h2> The Facebook </h2>
52.
When adding images and videos to your html webpage. What is the golden rule?
a)
Save files somewhere on the computer.
b)
Make sure the video is MP4 format
c)
Notepad file(.html), images and videos must be saved in the same folder.
d)
Find appropriate images to your content.
53.
Spot the syntax error with the code below...
<p> Hanna had won the battle <p>
a)
tags not opened or closed correctly
b)
not the correct tag 
c)
spelling error
d)
no errors would work.
54.
Spot the syntax error with the code below...
<h3> Section A </h3>
a)
tags not opened or closed correctly
b)
not the correct tag 
c)
spelling error
d)
no errors would work.
55.
<img src="PIC1.jpg" style="width:300px;height:328px">
Would set the size of the image PIC1.jpg?
a)
True
b)
False
56.

Which tag is missing from line 41 of this code?

a)

</html>

b)

<close>

c)

<end>

d)

<stop>

e)

<html>

57.
Which <tag> would create this type of page content?
a)
<table>
b)
<3Columns + 5Rows>
c)
<style>
d)
<table color = black>
58.

What is missing from line 22 of this code?

a)

" "

b)

;

c)

:

d)

>

e)

<

59.

How will the text be aligned for line 24 of the code below?

a)

Left

b)

Fully Justified

c)

Centre

d)

Right

60.

What colour will the word "James" be on line 22 of the code below?

a)

Red

b)

Pink

c)

Black

d)

Green

e)

Blue

61.

What lines do the section start and finish on?

a)

1 and 39

b)

3 and 12

c)

25 and 32

d)

14 and 39

62.

What will be the background colour of the section on this page?

a)

white

b)

blue

c)

red

d)

green

e)

yellow

63.

What will be the height and width of the image that is displayed on this page?

a)

Height = 200 Width = 300

b)

Height = 20 Width = 30

c)

Height = 300 Width = 200

d)

Height = 2000 Width = 3000

e)

Height = 250 Width = 350

64.

What software do we use to code our websites?

a)

Internet Explorer

b)

Microsoft Word

c)

Notepad++

d)

Notepad

65.

What is wrong with the body tag on line 14?

a)

Spelling error

b)

Missing speech marks

c)

Missing colon

d)

Missing semi colon

66.

Which tag is missing from the code below?

a)

</h1>

b)

</head

c)

</body>

d)

<body>

e)

</title>

67.

What tag is missing from the code below?

a)

none

b)

<html>

c)

</ul>

d)

</ol>

e)

</a>

68.

What does the font measurement 'px' stand for?

a)

Part Explained

b)

Pixel

c)

Paragraph Extra

d)

Picture

69.

Which HTML code allows you to display an image on the left or right hand side of the website?

a)

Align

b)

Move

c)

Float

d)

Shift

70.

Which code opens a hyperlink in a new tab in the browser?

a)

target="new_tab"

b)

target="_tab"

c)

target="_blank"

d)

target="_newtab"