wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Tags Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

The alt attribute in tag is used for:

a)

Image size

b)

Image link

c)

Alternative text

d)

Background color

2.

Which attribute of tag defines the URL?

a)

src

b)

alt

c)

href

d)

target

3.

Which tag is used to insert a comment?

a)

// comment

b)
c)

/* comment */

d)

# comment

4.

Which attribute in tag opens a link in a new tab?

a)

new

b)

href="_blank"

c)

target="_blank"

d)

tab="new"

5.

Which tag is used to insert a heading?

a)
b)
c)
d)

-

6.

The tag is used in:

a)

Image

b)

Table

c)

Video

d)

Audio

7.

The default bullet style of is:

a)

Number

b)

Dashed

c)

Disc

d)

Square

8.

Which attribute controls the width of an image?

a)

size

b)

length

c)

width

d)

height

9.

What does the href attribute in the <a> tag specify?

a)

Link target

b)

Link text

c)

Link destination

d)

Link style

10.

The <ul> tag is used to create:

a)

Definition list

b)

Table

c)

Unordered list

d)

Ordered list

11.

Which attribute in the <img> tag specifies the image source?

a)

source

b)

link

c)

alt

d)

src

12.

What does the target attribute in the <a> tag specify?

a)

Link size

b)

Link target window

c)

Link text color

d)

Link style

13.

The <ol> tag is used to create:

a)

Table

b)

Unordered list

c)

Ordered list

d)

Definition list

14.

Which attribute in the <img> tag provides a fallback text?

a)

title

b)

alt

c)

link

d)

src

15.

Which attribute in the <video> tag specifies the video source?

a)

link

b)

source

c)

video

d)

src

16.

The <table> tag is used to create:

a)

Definition list

b)

Ordered list

c)

Unordered list

d)

Table

17.

What does the rel attribute in the <a> tag specify?

a)

Link relationship

b)

Link style

c)

Link target

d)

Link text

18.

The <form> tag is used to create:

a)

Forms

b)

Lists

c)

Tables

d)

Input fields

19.

The <blockquote> tag is used for:

a)

Image display

b)

Quoting text

c)

Inline text

d)

Creating links

20.

What does the controls attribute in the <video> tag do?

a)

Specifies video format

b)

Defines video resolution

c)

Sets video autoplay

d)

Displays video controls