wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.
What does HTML stand for?
a)
Hypertext Making Language
b)
Hyper Transfer Markup Language
c)
Hypertext Markup Language
d)
Hyper Transfer Making Language
2.
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.
3.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
4.

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>

5.

Which is the correct HTML element for inserting a line break?

a)

<b>

b)

<lb>

c)

<br/>

d)

<break>

6.

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

7.

Which list tag would you use for an ordered list

a)

<h1></h1>

b)

<ol></ol>

c)

<ul></ul>

d)

<a></a>

8.

<h1> is an example of a _______.

a)

Headline Tag

b)

Paragraph Tag

c)

filename

9.

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

10.

What does a closing tag look like?

a)

< >

b)

<\ >

c)

</ >

d)

<< >>

11.

What should a HTML web page start with?

a)

<b>

b)

<li>

c)

<html>

d)

<start>

12.

What should a HTML web page end with?

a)

</html>

b)

<head>

c)

</end>

d)

</body>

13.

What is the difference between <h1> and <h2>?

a)

<h1> is larger in size than <h2>

b)

<h2> is larger in size than <h1>

c)

both are the same size but different headings

d)

none of the above

14.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
15.
CSS stands for?
a)
Closed Source Style
b)
Crucial Style Sheets
c)
Cascading Style Sheets
d)
Corresponding Static Style
16.
<style>
a)
Found at top of styling options
b)
Allows a heading to be written
c)
Allows the body to be written
d)
Allows attributes to be included
17.
<body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
18.
</body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
19.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
20.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

21.

What is the font size in this code: <p style=“color:blue; background-color:yellow; font-size:60px”>Hello</p>

a)

20pixles

b)

40pixels

c)

50pixels

d)

60pixels

22.
What will happen to the text in blue?   <p>He named his car <i>The lightning</i>, because it was very fast.</p>
a)
the content will be displayed in italic
b)
the content will display an image
c)
the content defines text inserted into a document
23.
What is will the highlighted tag do? <p>My favourite colour is blue<br>I support Southend United.
</p>
a)
it will make the text bold
b)
it will place the text on another line
24.
Which code will make your background red?
a)
<body style=background-color:red;>
b)
<body style="background-color:yellow;">
c)
<body style="background-color:red;">
d)
<body colormybg="background-color:red;">
25.
How would you centre a H2 heading?
a)
<h1 align="center">
b)
<h2 stickit="center">
c)
<h2 align=center>
d)
<h2 align="center">
26.
What best describes CSS
a)
describes how HTML elements are displayed on screen
b)
To logically divide the document
27.
Which of the following is an opening tag?
a)
</html>
b)
</body>
c)
</p>
d)
<h1>
28.
Which of the following is a closing tag?
a)
<p>
b)
<li>
c)
</h1>
d)
<html>
29.

The src attribute in the <img> tag references which of the following:

a)

a paragraph

b)

an image file

c)

a sound

d)

a head

30.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

31.

This coding is used to create a paragraph:

a)

<pr></pr>

b)

<p></p>

c)

<para></para>

d)

<par></par>

32.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
33.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^
34.
The content of the web page (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
35.
Which of the following is the smallest heading? 
a)
H3
b)
H4
c)
H5
d)
H6
36.

Choose the correct HTML element to define bold text

a)

<b>

b)

<i>

c)

<bold>

37.

What is the opening element for a paragraph?

a)

<p>

b)

</p>

c)

<opening paragraph>

38.

What is the name of the two sections associated with HTML?

a)

face and feet

b)

head and body

c)

neck and stomach

d)

top and bottom

39.

Which section of HTML contains the visible portion of the webpage?

a)

<head>

b)

<body>

40.

Which is the correct HTML tag for creating an unordered list?

a)

<ul>

b)

<uline>

c)

<u>

d)

<under>

41.

Which tag would you use to make a heading?

a)

<heading></heading>

b)

<bigger></bigger>

c)

<h></h1>

d)

<h1></h1>

42.
HTML tags are always surrounded by
a)
( )
b)
{ }
c)
< >   
d)
"  "
43.
What is the structure of HTML
a)
html, head, title, body
b)
html, head, hr, body
c)
html, head, text, img
d)
html, title, body, text
44.

An ordered list begins with______ and ends with_________

a)

<ol>and</ul>

b)

<ol>and</ol>

c)

<ol> and </al>

d)

<al> and </al>

45.

Which set contains all of the DEFAULT tags needed to create a webpage?

a)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

</html>

b)

<html>

<head>

</head>

<body>

</body>

</html>

c)

<!DOCTYPE html>

<html>

<head>

</head>

</html>

d)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

46.

Which of the following HTML code is valid?

a)

<font/ color="red">

b)

<font; color="red">

c)

<red><font>

d)

None of the above

47.

To create HTML document you require a

a)

web page editing software

b)

High powered computer

c)

Just a notepad can be used

d)

None of above

48.

There are ____ different heading tags in HTML

a)

4

b)

5

c)

6

d)

7

49.

In HTML document the tags

a)

should be written in upper case

b)

should be written in lower case

c)

should be written in proper case

d)

can be written in both uppercase or lowercase

50.

What is the font color in this code: <p style=“color:blue; background-color:yellow; font-size:60px”>Hello</p>

a)

yellow

b)

blue

c)

black

d)

green