wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Year 7 html

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

True or False? The HTML document itself begins with <html> and ends with </html>.

a)

True

b)

False

2.

The visible part of the HTML document is between:

a)

<html> </html>

b)

<head> </head>

c)

<body> </body>

d)

<h1> </h1>

3.

HTML elements are represented using:

a)

tabs

b)

tags

c)

attributes

d)

headings

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.

<p> tag is for...

a)

Page of Text

b)

Picture

c)

Paragraph of text

d)

Pineapples

6.

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>

7.

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

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.

What does HTML stand for?

a)

Hyperlink Text Making Language

b)

Hyper Text Markup Language

c)

How The Media Loads

d)

Hyperlinks, Text, and Media Language

10.

HTML uses text inside angle brackets < >. These are known as...

a)

Elements

b)

HTML

c)

Tags

d)

Headings

11.

In an image tag, what does the 'alt' attribute do?

a)

Shows the image

b)

Provides a text description of the image

c)

Provides an alternative image

d)

Tells the browser what to do if someone clicks the image

12.

Which section of a web page contains information about the web page such as the title and style.

a)

Head

b)

HTML

c)

Body

d)

Paragraph

13.

Which section of a web page does the content go into?

a)

HTML

b)

Head

c)

Body

d)

Style

14.

What does the <title> tag do?

a)

Makes the text bold like a page title

b)

Adds a heading to the page with the text in it

c)

Displays the title of the page in the browser tab

d)

Allows you to save the file as a web page

15.

How do you add a blank line to a web page?

a)

<hr>

b)

<blank>

c)

<br>

d)

<break>

16.

In a <table>, what does the <th> 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

17.

In a <table>, what does the <td> 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

18.

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

19.

<h1> is an example of a _______.

a)

Headline Tag

b)

Paragraph Tag

c)

filename

20.

<p> is a _______ tag.

a)

image

b)

paragraph

c)

filename

21.
Which of the following is a closing tag?
a)
<p>
b)
<li>
c)
</h1>
d)
<html>
22.
Which of the following tags is used to insert an image?
a)
<p>
b)
<a>
c)
<img>
d)
<h1>
23.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
24.
Which of the following tags are the last tag on a html document
a)
<end>
b)
</body>
c)
</footer>
d)
</html>
25.

What do you call a program that interprets HTML?

a)

Webpage

b)

Website

c)

Web browser

d)

Web

26.
HTML tags are always surrounded by
a)
( )
b)
{ }
c)
< >   
d)
"  "
27.
If you wanted to add links to your web page - what tag would you use?
a)
<a>
b)
<p>
c)
<div>
d)
<link>
28.
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;">
29.
Which format usually works best for photos?
a)

JPEG

b)

DOC

c)

GIF

d)

WAV

30.
Which word is not used in HTML structure?
a)
footer
b)
body
c)
head
d)
arm
31.
Which is NOT a web browser?
a)
Chrome
b)
Internet explorer
c)
FireFox
d)
Yahoo
32.
How would you set the height of a cell to 170 in a HTML table?
a)
Height="170"
b)
Ht="170"
33.

Which is safer?

a)

HTTP

b)

HTTPS

34.

Web pages are coded using:

a)

Scratch

b)

HTML

c)

Python

d)

C++

35.

The internet is the same as the World Wide Web

a)

True

b)

False

36.

Which protocol is most commonly used to deliver web pages?

a)

HTTP

b)

HTML

c)

CSS

d)

FTP

37.
http://www.bbc.co.uk/index.html
What part of the URL in red -
a)
The protocol prefix
b)
The domain name
c)
The file path
d)
The file name
38.
https://mail.google.com/mail/index.html
What part of the URL in red -
a)
The domain suffix
b)
The protocol prefix
c)
The domain name
d)
The path
39.
https://www.edutopia.org/blog/start.html
What part of the URL in red -
a)
The protocol prefix
b)
The domain name
c)
The file name
d)
The domain suffix
40.
Which tag is used to underline text?
a)
<a>
b)
<u>
c)
<b>
d)
<I>