wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML (1)

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

Which application is suggested for writing codes according to the instructions?

a)

WordPad

b)

Notepad

c)

Microsoft Word

d)

Excel

2.

HTML tags are used to create elements on a webpage. Which of the following best explains how they are used?

a)

HTML tags are placed within angle brackets to define elements, such as

for a paragraph. For example,

This is a paragraph.

b)

HTML tags are used to perform mathematical operations, such as for addition.

c)

HTML tags are used to store variables, such as for variable storage.

d)

HTML tags are used to create animations, such as for movement.

3.

What do HTML elements have?

a)

Attributes and values

b)

Only tags

c)

Only text

d)

Only images

4.

Which of the following is the correct basic structure to write a code for an element with an attribute and its value?

a)

< Element Name Attribute Name = "Value" >

b)

< Attribute Name Element Name = "Value" >

c)

< Element Name = Attribute Name "Value" >

d)

< Value Attribute Name = "Element Name" >

5.

Select the correct tag a student should use to set "nature.jpg" as the background of their webpage.

a)

<background = "nature.jpg">

b)

<body bgbackground = "nature.jpg">

c)

<body background = "nature.jpg">

d)

<body bgcolor="nature.jpg">

6.

What is the purpose of the "style" element in the head section of an HTML document?

a)

To define the appearance of the webpage

b)

To display the main content

c)

To add images

d)

To create hyperlinks

7.

What is the range of header tags in HTML?

a)

H1 to H4

b)

H1 to H6

c)

H2 to H5

d)

H3 to H7

8.

Which of the following is NOT an attribute of the font element in HTML?

a)

Color

b)

Face

c)

Size

d)

Border

9.

Which HTML tag is used to define a list item?

a)

  • < ol >

b)

  1. < ul >

c)

  • < il >

d)

< li >