wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Assessment

Total questions: 26

Worksheet time: 21mins

Name
Class
Date
1.
What does HTML stand for?
a)
Hyper Text Modelling Language
b)
Heuristic Text Markup Language
c)
Hyper Text Markup Language
d)
Heuristic Text Modelling Language
2.
What is 'html' used for?
a)
to search websites
b)
to spellcheck web pages
c)
to create webpages
d)
to destroy viruses
3.

Difference between HTML, CSS, and Javascript

a)

HTML is the skin, CSS is the brain, and JavaScript is the bones

b)

HTML is the brain, CSS is the bones, and JavaScript is the skin

c)

HTML is the bones, CSS is the skin, and JavaScript is the brain

4.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
5.
What is the first tag you should see in an HTML file?
a)

<title>

b)

<html>

c)

<body>

d)

<h1>

6.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
7.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
8.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
9.
Which character is used to indicate an end tag?
a)
{}
b)
<
c)
/
d)
*
10.

The _______________ declaration defines this document to be HTML5

a)

<!DOCTYPE html>

b)

<html>

c)

<head>

d)

<title>

11.

Above is a visualization of an HTML page structure:

Which of the following section is displayed in a browser.

a)

<body> section

b)

<head> section

c)

<title> section

d)

none of the above

12.

The _____ element defines a large heading

a)

<h2>

b)

<h1

c)

<h3>

d)

<h4>

13.

What will be the output for the following program?

<html>


<body>


<p>Hello SJPS</p>


</body>


</html>

a)

<Hello SJPS>

b)

Hello SJPS

c)

both are correct

14.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
15.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
16.
Which is the correct way to format a Font Family for a paragraph?
a)
p { font-face: Arial; }
b)
p { family-font: Arial; }
c)
p { font-family: Arial; }
d)
p { font: Arial; }
17.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
18.
Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
a)
<li>
b)
<h1>
c)
<hr>
d)
<br>
19.
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">
20.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

21.

One of the most important elements in a web page, the a element lets you create links to other content. The content can be either on your own site or on another site.

Select the correct matching open and closing tags

a)

<a> … </a>

b)

<a> … <a>

c)

</a> … </a>

d)

<a\> … </a>

22.

The div element is a generic container that you can use to add more structure to your page content.

<div> … <........>. Select the correct closing tag

a)

</div>

b)

<div/>

c)

<div\>

d)

<div>

23.

What is happening in this code?... (click picture to make it larger and more visible)

4 lines
24.

What is happening in this code?... (click picture to make it larger and more visible)

4 lines
25.

What is happening in this code?... (click picture to make it larger and more visible)

4 lines
26.

Tick all of the points below which would apply to a trustworthy website.

a)

Looks Professional

b)

Information is poorly organised

c)

Good URL (main web address relates to website)

d)

Up-To-Date

e)

Information isn’t backed up by other websites