NEW
Font size
WorksheetsBasic Tags in HTML
Total questions: 30
Worksheet time: 15mins
Which of the following is the full form of HTML?
Hyper Trainer Mark-up Language
Hyper Text Markup Language
Hyper Text Markdown Language
High Text Markup Language
Which tag is used to create a hyperlink in HTML?
<link>
<a>
<href>
<url>
HTML is used to __________.
Style the web page
Add interactivity to the web page
Structure the content on the web page
Perform server-side scripting
Which attribute is used to open a hyperlink in a new tab or window?
target="_blank"
href="_blank"
new="_tab"
open="new"
Which of the following is NOT an HTML heading tag?
<h5>
<h7>
<h6>
<h1>
The correct sequence of HTML document structure is:
HTML → Body → Head → Title
HTML → Head → Title → Body
HTML → Title → Head → Body
Title → HTML → Head → Body
What does the <br> tag in HTML do?
Inserts a paragraph break
Adds a horizontal line
Inserts a line break
Creates a blank space
Which of the following is used to display an image in HTML?
<img>
<image>
<picture>
<src>
In HTML, comments are written using:
// comment
<!-- comment -->
/* comment */
# comment
Which protocol is mainly used for loading web pages on the internet?
FTP
SMTP
HTTP/HTTPS
IPX/SPX
Which of the following is the root element of every HTML document?
<head>
<html>
<body>
<title>
Which tag in HTML is used to define metadata about the document?
<body>
<head>
<meta>
<title>
Which of the following tags is always included inside the <head> section?
<body>
<title>
<h1>
<p>
The <meta charset="UTF-8"> tag is used to:
Define the title of the page
Set the encoding of the document
Add a comment to the document
Create a hyperlink
Which of the following is NOT a metadata element in HTML?
<meta>
<h1>
<title>
<link>
In an HTML document, the <body> tag contains:
Metadata information
The page title
The visible page content
The character encoding
Which HTML tag is used to link an external CSS file?
<meta>
<style>
<link>
<css>
The <head> section of an HTML document generally contains:
Paragraphs and images
Hyperlinks and buttons
Metadata and scripts
Tables and forms
In HTML5, the declaration <!DOCTYPE html> is used to:
Define the body of the document
Add metadata to the page
Specify the document type and version
Insert comments into the page
Which HTML tag is used to define the largest heading?
<h6>
<h1>
<h3>
<head>
How many heading levels are available in HTML?
3
4
5
6
Which tag is used to create a paragraph in HTML?
<para>
<paragraph>
<p>
<pg>
Which tag is used to insert a horizontal rule (line) in HTML?
<hr>
<line>
<rule>
<border>
What is the default alignment of headings and paragraphs in HTML?
Right
Center
Left
Justify
In HTML, headings <h1> to <h6> are used to:
Change font style
Define paragraph sizes
Define heading levels with different sizes
Insert horizontal lines
Which of the following is NOT true about the <p> tag in HTML?
It adds space before and after the paragraph
It supports nested paragraphs
It is a block-level element
It is used to display text
The <br> , <img>, and <hr> tags are the examples of
Block-level elements
Container tags
Self-closing tags
Heading tags
Which HTML tag is used to make text bold?
<strong>
<b>
<em>
<i>
Which tag is used to underline text in HTML?
<u>
<underline>
<ul>
<line>
What is the difference between <b> and <strong> in HTML?
<b> is for bold text, <strong> is for italics
<b> is for styling, <strong> indicates important text semantically
<b> is obsolete, <strong> replaces it
Both tags are identical in all respects
