wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Html elements (tags)

Total questions: 40

Worksheet time: 19mins

Name
Class
Date
1.

HTML stands for...

a)

Hyper Time Multiple Language

b)

Hyper Text Mark-up Language

c)

Hippo T-Rex Mascot Lemur

d)

Hipper Text Make Language

2.

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>

3.

<p> tag is for...

a)

Page of Text

b)

Picture

c)

Paragraph of text

d)

Pineapples

4.

Which code below is correct for a hyperlink

a)

<a>

"https://google.com"

Click Me

</a>

b)

<a>Click Me>

"https://google.com"

</a>

c)

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

Click Me

</a>

d)

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

Click Me

</a>

5.

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

6.

Which list tag would you use for an ordered list

a)

<h1></h1>

b)

<ol></ol>

c)

<ul></ul>

d)

<a></a>

7.

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;”>

8.

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

9.
<body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
10.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
11.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
12.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
13.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
14.

What does a closing tag look like?

a)

< >

b)

<\ >

c)

</ >

d)

<< >>

15.

What does a opening tag look like?

a)

< >

b)

</ >

c)

<< >>

d)

<

16.
A <tag>
a)
Is used to divide sections
b)
Is not needed in HTML
c)
Tells the browser how to format our content
d)
Is part of the title line in HTML
17.
New heading tags can be added by using;
a)
Letters (ie: ha; hb)
b)
Numbers (i.e: h1; h2)
c)
Quotations (ie: h'; h")
d)
You can't do this
18.
Style tags are used to;
a)
Apply style to one line
b)
Not used in HTML
c)
Used at the top of the page to apply a style to the entire document
d)
Used sparingly
19.
Body tags are used;
a)
Used for only the header
b)
Used only for the paragraph
c)
element that wraps everything that is visible on the page.
d)
Not used in HTML
20.
</body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
21.
</html>
a)
Found after </h1>
b)
Found after </style>
c)
Found after </body>
d)
Found at bottom of written code
22.

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>

23.

Web pages starts with which of the following tag?

a)

<form>

b)

<HTML>

c)

<body>

d)

<Title>

24.

Choose the correct HTML element for the largest heading:

a)

<head>

b)

<h1>

c)

<heading>

d)

<h6>

25.

HTML controls the _________ of a webpage.

a)

feel

b)

precision

c)

structure

d)

style

26.

How can you make a list that has no particular order?

a)

<ol> </ol>

b)

<ul> </ul>

c)

<ol> <li>

d)

<li> </ul

27.

Which of the following is the proper format for an HTML tag?

a)

>h1<Content Affected by Tag >/h1<

b)

<h1>Content Affected by Tag<h1>

c)

<h1 Content Affected by Tag />

d)

<h1>Content Affected by Tag</h1>

28.
If you wanted to add links to your web page - what tag would you use?
a)
<a>
b)
<p>
c)
<div>
d)
<link>
29.
the tag <IMG> would insert what into a web page?
a)
Insert a title
b)
Insert a link
c)
Insert an image
30.
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
31.
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
32.
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;">
33.
What will happen to the content in blue?<p>This is a spelling mistake <u>parragraph</u> .<p/>
a)
it will be in bold
b)
it will be underlined
c)
it will be in italics
34.
Which word is not used in HTML structure?
a)
footer
b)
body
c)
head
d)
arm
35.
What does the <HTML> tag tell the browser
a)
that it is an HTML document
b)
defines the documents body
c)
that it contains all the head elements
36.
Which of the following is the smallest heading tag?
a)
<h1>
b)
<h3>
c)
<h5>
d)
<h6>
37.
Which of the following creates an item in a list?
a)
<li>
b)
<h3>
c)
<ol>
d)
<title>
38.
Which item refers to the start tag, the end tag and everything in between?
a)
HTML Element
b)
HTML Tag
c)
HTML Attribute
d)
CSS
39.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
40.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document