wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Basics

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which heading/subheading is the biggest font size?

a)

<h1>

b)

<h2>

c)

<h3>

d)

<h6>

2.

Some tags you have to close with a /

Example: <h1> My Project </h1>

a)

True

b)

False

3.

Which is not a heading/subheading?

a)

<h6>

b)

<h7>

c)

<h1>

d)

<h2>

4.

<a href="https://www.picturelocation"> Click me </a>

Is this coded correctly?

a)

Yes

b)

No

5.

<a herf="https://www.picturelocation"> Click me </a>

Is this coded correctly?

a)

Yes

b)

No, they wrote herf

6.

<a href+"https://www.picturelocation"> Click me </a>

What is wrong with this code?

a)

It should be

<a href=

b)

It should be

<a href-

c)

It should be

<a href/

7.

<a href="https://www.picturelocation"> Click me <a>

What is missing?

a)

Nothing, it is coded correctly.

b)

The / in the closing tag

</a>

c)

They wrote

herf

8.

What color are links or hyperlinks?

a)

red

b)

blue

c)

yellow

d)

green

9.

When a link or hyperlink is purple and not blue, it means...

a)

That you have never ever clicked on it

b)

You have already clicked on it

c)

It is a virus

10.

<br>

what is this called?

a)

a line break

b)

an anchor element

c)

hyperlink

11.

which code lets you enter or return to the next line and helps you stack text on top of other text?

a)

<br>

b)

<a href=

c)

<img src

12.

In this code <img src

What does img stand for?

a)

iMac

b)

image

c)

amazing

d)

emma

13.

In this code <img src

What does src stand for?

a)

sauce

b)

source

c)

saucey-sauce

d)

saucer

14.

<img src="https://www.imagelocation.com">

Is this coded correctly?

a)

Yes

b)

No

15.

<img scr="https://www.picturelocation.com">

Is this coded correctly

a)

Yes

b)

No, src is written wrong

16.

width="600" height="200"

This code can help resize an image when using

<img src

a)

True

b)

False

17.

<img scr="https://www.picturelocation.com">

Is a self closing tag, it does not need a /

a)

True

b)

False

18.

How can you find an image's address?

a)

Right click and choose - open image in new tab

b)

Right click and choose - copy image address

c)

Right click and choose - save link as

19.

What does HTML stand for?

a)

Hyperlink Markup Language

b)

Hypertext Markup Language

c)

Hyperbolic Mark-it

Language

20.

What does CSS handle?

a)

The style and looks of a webpage

b)

The text of a webpage

21.

Which HTML tag is used to create a hyperlink?

a)

<h1>

b)

<a>

c)

<img>

d)

<br>

22.

What attribute is required in the <img> tag to specify the image file?

a)

alt

b)

src

c)

link

d)

href

23.

Which of the following is the correct way to close a heading tag?

a)

<h1>

b)

</h1>

c)

<h1/>

d)

<h1-

24.

Which HTML tag is used to display an image on a webpage?

a)

<img>

b)

<image>

c)

<src>

d)

<picture>

25.

Which HTML tag is used to create the largest heading?

a)

<h3>

b)

<h6>

c)

<h4>

d)

<h1>

26.

Which HTML tag is used to create a line break?

a)

<br>

b)

<a>

c)

<img>

d)

<h1>

27.

What attribute should you use in the <a> tag to open a link in a new tab?

a)

src="_blank"

b)

alt="newtab"

c)

href="newtab"

d)

target="_blank"

28.

Which HTML tag is used to define the smallest heading?

a)

<h6>

b)

<h3>

c)

<h1>

d)

<h2>

29.

Which HTML tag is used to create a paragraph?

a)

<p>

b)

<a>

c)

<h1>

d)

<img>

30.

Which HTML tag is used to create a hyperlink that opens in a new tab?

a)

<hyperlink href="url">

b)

<link href="url">

c)

<a href="url" target="_blank">

d)

<a href="url">