Multiple
Choice Questions (MCQs)
Of Class 1
Introduction
to HTML and Web Development
1.
Which
of the following is NOT a front-end technology?
o
a)
HTML
o
b)
CSS
o
c)
JavaScript
o
d)
MySQL
Answer: d) MySQL
2.
What
does HTML stand for?
o
a)
HyperText Markup Language
o
b)
Hyperlink and Text Markup Language
o
c)
Home Tool Markup Language
o
d)
HyperTool Markup Language
Answer: a) HyperText Markup Language
3.
Which
tag is used to create a paragraph in HTML?
o
a)
<p>
o
b)
<h1>
o
c)
<div>
o
d)
<a>
Answer: a) <p>
4.
Which
of the following tags is used to set the title of a webpage?
o
a)
<title>
o
b)
<head>
o
c)
<body>
o
d)
<meta>
Answer: a) <title>
5.
Which
element contains the content that will be visible on the webpage?
o
a)
<html>
o
b)
<head>
o
c)
<body>
o
d)
<title>
Answer: c) <body>
6.
Which
of the following is an example of a server-side language?
o
a)
HTML
o
b)
CSS
o
c)
PHP
o
d)
JavaScript
Answer: c) PHP
7.
What
is the main purpose of CSS in web development?
o
a)
To structure the content on a webpage
o
b)
To style the content on a webpage
o
c)
To add interactivity to a webpage
o
d)
To manage databases on a server
Answer: b) To style the content on a webpage
8.
What
does the <img> tag in HTML do?
o
a)
Creates a hyperlink
o
b)
Displays an image
o
c)
Adds a heading
o
d)
Creates a list
Answer: b) Displays an image
9.
Which
of the following tags is used to create a hyperlink in HTML?
o
a)
<h1>
o
b)
<img>
o
c)
<a>
o
d)
<p>
Answer: c) <a>
10. What is the correct order of the basic
structure of an HTML document?
o
a)
<html>, <head>, <title>, <body>
o
b)
<head>, <title>, <body>, <html>
o
c)
<html>, <body>, <head>, <title>
o
d)
<body>, <head>, <html>, <title>
Answer: a) <html>, <head>, <title>, <body>
11. Which of the following best describes
back-end development?
o
a)
Designing the layout and appearance of a webpage
o
b)
Managing databases and server-side logic
o
c)
Creating the structure of a webpage using HTML
o
d)
Adding interactivity to a webpage using JavaScript
Answer: b) Managing databases and server-side logic
12. Which tag is used to define the most
important heading on a webpage?
o
a)
<h1>
o
b)
<h2>
o
c)
<h3>
o
d)
<h4>
Answer: a) <h1>
13. What does a Full Stack Developer do?
o
a)
Works only on the front-end of a website
o
b)
Works only on the back-end of a website
o
c)
Manages both front-end and back-end development
o
d)
Designs the content of a webpage
Answer: c) Manages both front-end and back-end development
14. In which part of the HTML document do
you place the metadata?
o
a)
<html>
o
b)
<head>
o
c)
<body>
o
d)
<title>
Answer: b) <head>
15. Which of the following is true about
HTML?
o
a)
HTML is a programming language.
o
b)
HTML is used to structure content on a webpage.
o
c)
HTML is used to style content on a webpage.
o
d)
HTML is used to interact with databases.
Answer: b) HTML is used to structure content on a webpage.
16.
Which
HTML tag is used to create a link that opens in a new tab?
o
a)
<a href="url">
o
b)
<a target="_new">
o
c)
<a target="_blank">
o
d)
<a newtab="true">
Answer: c) <a target="_blank">
17. Which HTML element is used to define a
block of navigation links?
o
a)
<nav>
o
b)
<ul>
o
c)
<div>
o
d)
<section>
Answer: a) <nav>
18. What is the purpose of the <!DOCTYPE
html> declaration in an HTML document?
o
a)
To link to an external CSS file
o
b)
To declare the type of the document and version of HTML
o
c)
To create a hyperlink
o
d)
To define a comment in the HTML code
Answer: b) To declare the type of the document and version of HTML
19. Which attribute is used to provide
alternative text for an image in HTML?
o
a)
title
o
b)
alt
o
c)
src
o
d)
href
Answer: b) alt
20. In HTML, which tag is used to create a
list with bullet points?
o
a)
<ol>
o
b)
<ul>
o
c)
<li>
o
d)
<dl>
Answer: b) <ul>
21. What is the correct syntax for creating
an HTML comment?
o
a)
// This is a comment
o
b)
/* This is a comment */
o
c)
<!-- This is a comment -->
o
d)
/** This is a comment **/
Answer: c) <!-- This is a comment -->
22. Which of the following tags is used to
embed a video in an HTML document?
o
a)
<embed>
o
b)
<video>
o
c)
<media>
o
d)
<iframe>
Answer: b) <video>
23. Which HTML tag is used to display a
horizontal line on a webpage?
o
a)
<hr>
o
b)
<br>
o
c)
<line>
o
d)
<div>
Answer: a) <hr>
24. Which of the following is used to group
inline-elements in a webpage?
o
a)
<div>
o
b)
<span>
o
c)
<section>
o
d)
<header>
Answer: b) <span>
25. Which of the following is a semantic
HTML element?
o
a)
<div>
o
b)
<span>
o
c)
<section>
o
d)
<b>
Answer: c) <section>
26. What does the <meta
charset="UTF-8"> tag do in an HTML document?
o
a)
Defines the title of the document
o
b)
Specifies the character encoding for the document
o
c)
Links to an external CSS file
o
d)
Embeds an image in the document
Answer: b) Specifies the character encoding for the document
27. Which attribute is required in the
<img> tag to display an image?
o
a)
href
o
b)
src
o
c)
alt
o
d)
title
Answer: b) src
28. What is the default alignment of
content inside an <h1> tag?
o
a)
Left
o
b)
Center
o
c)
Right
o
d)
Justified
Answer: a) Left
29. Which HTML tag is used to create a
drop-down list?
o
a)
<select>
o
b)
<input type="dropdown">
o
c)
<list>
o
d)
<form>
Answer: a) <select>
30. Which tag is used to define a clickable
button in HTML?
o
a)
<input type="button">
o
b)
<button>
o
c)
<click>
o
d)
<input type="submit">
Answer: b) <button>
31.Which
of the following is true about the <title> tag in an HTML document?
o
a)
It defines the main heading on the webpage.
o
b)
It is used to create a hyperlink.
o
c)
It sets the title that appears in the browser's title bar or tab.
o
d)
It is used to include images on the webpage.
Answer: c) It sets the title that appears in the browser's title
bar or tab.
32.What
is the purpose of the <head> section in an HTML document?
o
a)
To display the main content of the webpage
o
b)
To include meta-information, links to stylesheets, and the document's title
o
c)
To create headers in the document
o
d)
To define the footer of the webpage
Answer: b) To include meta-information, links to stylesheets, and
the document's title
33.Which
HTML tag is used to create an ordered list?
o
a)
<ul>
o
b)
<ol>
o
c)
<li>
o
d)
<dl>
Answer: b) <ol>
34.Which
of the following tags is used to create a line break in HTML?
o
a)
<br>
o
b)
<hr>
o
c)
<lb>
o
d)
<break>
Answer: a) <br>
35.Which
of the following attributes is used with the <a> tag to specify the URL
of the page the link goes to?
o
a)
href
o
b)
src
o
c)
link
o
d)
url
Answer: a) href
36.Which
tag is used to create a table in HTML?
o
a)
<table>
o
b)
<tr>
o
c)
<td>
o
d)
<th>
Answer: a) <table>
37.What
is the correct HTML tag for creating a text input field?
o
a)
<input type="text">
o
b)
<textfield>
o
c)
<input type="textbox">
o
d)
<text>
Answer: a) <input type="text">
38.Which
attribute is used to specify the height of an image in HTML?
o
a)
height
o
b)
width
o
c)
size
o
d)
length
Answer: a) height
39.Which
of the following HTML elements is used to create a dropdown list?
o
a)
<select>
o
b)
<dropdown>
o
c)
<list>
o
d)
<input type="dropdown">
Answer: a) <select>
40.Which
of the following is the correct tag for the largest heading in HTML?
o
a)
<h1>
o
b)
<h2>
o
c)
<h3>
o
d)
<h4>
Answer: a) <h1>
41.Which
of the following attributes is used to uniquely identify an HTML element?
o
a)
id
o
b)
class
o
c)
name
o
d)
type
Answer: a) id
42.What
is the purpose of the <meta> tag in an HTML document?
o
a)
To define metadata about the document, such as character set, description, and
keywords
o
b)
To display an image
o
c)
To create hyperlinks
o
d)
To add comments in the HTML code
Answer: a) To define metadata about the document, such as character
set, description, and keywords
43.Which
tag would you use to embed an external webpage within your HTML document?
o
a)
<iframe>
o
b)
<frame>
o
c)
<embed>
o
d)
<div>
Answer: a) <iframe>
44.Which
HTML tag is used to define emphasized text?
o
a)
<em>
o
b)
<strong>
o
c)
<b>
o
d)
<i>
Answer: a) <em>
45.Which
HTML tag is used to add a footer to a webpage?
o
a)
<footer>
o
b)
<foot>
o
c)
<bottom>
o
d)
<div>
o
Answer: a) <footer>