wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic Tags in HTML

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which of the following is the full form of HTML?

a)

Hyper Trainer Mark-up Language


b)

Hyper Text Markup Language

c)

Hyper Text Markdown Language

d)

High Text Markup Language

2.

Which tag is used to create a hyperlink in HTML?

a)

<link>

b)

<a>

c)

<href>

d)

<url>

3.

HTML is used to __________.



a)

Style the web page

b)

Add interactivity to the web page

c)

 Structure the content on the web page

d)

Perform server-side scripting

4.

Which attribute is used to open a hyperlink in a new tab or window?

a)

target="_blank"

b)

href="_blank"

c)

new="_tab"

d)

open="new"

5.

Which of the following is NOT an HTML heading tag?

a)

<h5>

b)

<h7>

c)

<h6>

d)

<h1>

6.

The correct sequence of HTML document structure is:

a)

HTML → Body → Head → Title

b)

HTML → Head → Title → Body

c)

HTML → Title → Head → Body

d)

Title → HTML → Head → Body

7.

 What does the <br> tag in HTML do?

a)

Inserts a paragraph break

b)

Adds a horizontal line

c)

Inserts a line break

d)

Creates a blank space

8.

Which of the following is used to display an image in HTML?

a)

<img>

b)

<image>

c)

<picture>

d)

<src>

9.

In HTML, comments are written using:

a)

// comment

b)

<!-- comment -->

c)

/* comment */

d)

# comment

10.

Which protocol is mainly used for loading web pages on the internet?

a)

FTP

b)

 SMTP

c)

HTTP/HTTPS

d)

IPX/SPX

11.

Which of the following is the root element of every HTML document?

a)

<head>

b)

<html>

c)

<body>

d)

<title>

12.

Which tag in HTML is used to define metadata about the document?

a)

<body>

b)

<head>

c)

<meta>

d)

<title>

13.

 Which of the following tags is always included inside the <head> section?

a)

<body>

b)

<title>

c)

<h1>

d)

<p>

14.

The <meta charset="UTF-8"> tag is used to:

a)

Define the title of the page

b)

Set the encoding of the document

c)

Add a comment to the document

d)

Create a hyperlink

15.

Which of the following is NOT a metadata element in HTML?

a)

<meta>

b)

<h1>

c)

<title>

d)

<link>

16.

In an HTML document, the <body> tag contains:

a)

Metadata information

b)

The page title

c)

The visible page content

d)

The character encoding

17.

Which HTML tag is used to link an external CSS file?

a)

<meta>

b)

<style>

c)

<link>

d)

<css>

18.

The <head> section of an HTML document generally contains:

a)

Paragraphs and images

b)

Hyperlinks and buttons

c)

Metadata and scripts

d)

Tables and forms

19.

In HTML5, the declaration <!DOCTYPE html> is used to:

a)

Define the body of the document

b)

Add metadata to the page

c)

Specify the document type and version

d)

Insert comments into the page

20.

Which HTML tag is used to define the largest heading?

a)

<h6>

b)

<h1>

c)

<h3>

d)

<head>

21.

How many heading levels are available in HTML?

a)

3

b)

4

c)

5

d)

6

22.

Which tag is used to create a paragraph in HTML?

a)

<para>


b)

<paragraph>

c)

<p>

d)

<pg>

23.

Which tag is used to insert a horizontal rule (line) in HTML?

a)

<hr>

b)

<line>

c)

<rule>

d)

<border>

24.

What is the default alignment of headings and paragraphs in HTML?

a)

Right

b)

Center

c)

Left

d)

Justify

25.

In HTML, headings <h1> to <h6> are used to:

a)

Change font style

b)

Define paragraph sizes

c)

Define heading levels with different sizes

d)

Insert horizontal lines

26.

Which of the following is NOT true about the <p> tag in HTML?

a)

It adds space before and after the paragraph

b)

It supports nested paragraphs

c)

It is a block-level element

d)

It is used to display text

27.

The <br> , <img>, and <hr> tags are the examples of

a)

Block-level elements

b)

Container tags

c)

Self-closing tags

d)

Heading tags

28.

Which HTML tag is used to make text bold?

a)

<strong>

b)

<b>

c)

<em>

d)

<i>

29.

Which tag is used to underline text in HTML?

a)

<u>


b)

<underline>

c)

<ul>

d)

<line>

30.

What is the difference between <b> and <strong> in HTML?

a)

<b> is for bold text, <strong> is for italics

b)

<b> is for styling, <strong> indicates important text semantically

c)

<b> is obsolete, <strong> replaces it

d)

Both tags are identical in all respects