Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic HTML Tags for Web Content Quiz

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

When designing a webpage for a school project, which HTML features should you use to make your content engaging and visually structured?

a)

Only use plain text without any tags

b)

Use comments, centring content, paragraphs, line breaks, and images with sizing to organize and visually enhance the webpage

c)

Avoid using images or any formatting

d)

Use random code snippets unrelated to the topic

2.

What is the purpose of the

tag < p > in HTML?

a)

To add a text in the form of a paragraph

b)

To insert an image

c)

To create a table

d)

To add a comment

3.

................ is used to navigate a website

a)

text

b)

image

c)

hyperlink

d)

all previous

4.

Which of the following is the correct syntax to enclose a comment in HTML?

a)

</* This is a comment */>

b)

<// This is a comment//>

c)

<!-- comment -->

d)

< # comment >

5.

What happens when you use the paragraph tag in HTML?

a)

The text starts on a new line and browsers add some white space before and after the paragraph.

b)

The text becomes bold and italic.

c)

The text is centered on the page.

d)

The text is converted into a list.

6.

Which HTML tag is used to insert an image into a web page?

a)

< center >

b)

< marquee >

c)

< img >

d)

< Video>

7.

...................... are the attributes of the image element used to specify its size

a)

size / length

b)

width / height

c)

height / length

d)

width / size

8.

Which attribute specifies the image border width in pixels when inserting an image?

a)

Border

b)

Width

c)

Height

d)

Format

9.

------------ are types of empty elements [ has no closing tag ]

a)

< Br >

b)

< hr >

c)

< img >

d)

All previous

10.

The marquee attributes are :

a)

behavior

b)

scroll

c)

behaviour / scroll amount

d)

behaviour / scroll speed

11.

...................... Is the element used to draw a horizontal line

a)

< br >

b)

< marquee >

c)

< hr >

d)

< head >

12.

................ is the tag used to insert a hyperlink

a)

< img >

b)

< hr >

c)

< br >

d)

< a href >

13.

Hyperlink could be created through ......................... or a ......................

a)

image -- video

b)

video -- text

c)

text -- image

d)

all previous

14.

...................... is the tag used to format the text

a)

< format >

b)

< font >

c)

< size >

d)

< color>

15.

...........................Is the result of the code in the attached image

a)

b)

c)

d)

16.

.......................... is the tag used to make the text strong

a)

< br >

b)

< i >

c)

< b >

d)

< u >

17.

.......................... is the tag used to make the text underlined

a)

< br >

b)

< i >

c)

< b >

d)

< u >

18.

.......................... is the tag used to make the Italic

a)

< br >

b)

< i >

c)

< b >

d)

< u >

19.

Container elements are those which have ................

a)

no closing tag

b)

no attributes

c)

closing tags

d)

closing tags & no attributes

20.

.............. is the attribute of < hr > that controls the hr height

a)

Height

b)

size

c)

length

d)

width

21.

.............. is the attribute of < hr > that could be presented as %

a)

Height

b)

size

c)

length

d)

width