HTML
HTML (HyperText Markup Language) structures web content using tags to define elements like headings, paragraphs, links, images, and forms.
1. HTML is what type of language?
A) Scripting language
B) Markup language ✅
C) Programming language
D) Network protocol
2. What is the first tag in an HTML document?
A) <html>
✅
B) <body>
C) <head>
D) <title>
3. Which HTML tag inserts a line horizontally in a page?
A) <line>
B) <break>
C) <hr>
✅
D) <tr>
4. What are the two main parts available in an HTML document?
A) Title and Body
B) Head and Title
C) Head and Body ✅
D) Head and Document
5. Which character in HTML is used to indicate an end tag?
A) \
B) / ✅
C) !
D) <#
6. Which symbols start with HTML comments?
A) <!--
✅
B) </
C) <#
D) <\
7. Which attribute is used with <td>
tag to merge two cells horizontally?
A) Colspan = 2 ✅
B) Rowspan = 2
C) Mergerows
D) Mergecols
8. Which tag creates a checkbox for a form in HTML?
A) <checkbox>
B) <input box>
C) <input = check box>
D) <input type="checkbox">
✅
9. Which HTML tag is used to add a row in a table?
A) <tr>
and </tr>
✅
B) <td>
and </td>
C) <table>
and </table>
D) <th>
and </th>
10. Which HTML tag is used to divide a row into data cells?
A) <tr>
and <th>
B) <table>
and <tr>
C) <tr>
and <title>
D) <tr>
and <td>
✅
11. Which is the correct syntax for adding alternate text for an image, if the image cannot be displayed?
A) <img src="boat.gif" alt="big boat">
✅
B) <img src="boat.gif" alt text="big boat"/>
C) <img src="boat.gif" alternate="big boat"/>
D) <img src="boat.gif" alternate text="big boat"/>
12. Which is the correct H1 tag for right alignment?
A) <h1 align="right">This is heading</h1>
✅
B) <h1 align="left">This is heading</h1>
C) <h1 right>This is heading</h1>
D) <h1 align=right>This is heading
13. What is the correct syntax for making a hyperlink?
A) <http:// “https://www.bharatskills.in”>
B) <url = “https://www.bharatskills.in”>heetson
C) <a href="https://www.bharatskills.in">heetson</a>
✅
D) <a ref="https://www.bharatskills.in">heetosn
14. Which is the correct tag for adding iframe in HTML?
A) <iframe https://www.bharatskills.in>
B) <iframe ="https://www.bharatskills.in">
C) <iframe src="https://www.bharatskills.in">
✅
D) <iframe href="https://www.bharatskills.in">
15. What is the correct HTML tag for adding a background color?
A) <background>
B) <body bgcolor="yellow">
✅
C) <bgcolor>
D) <color>
16. How do you add a link which will allow the visitor to send an email from the page?
A) <a href="mailto:youraddress">Send Email</a>
✅
B) <a href="sendmailtoyour address">
C) <a="mailto">
D) <href="mailto">
17. What will happen if the background image is smaller than the screen?
A) It will be stretched
B) It will leave a blank space at the bottom of the page
C) It will leave a blank space at the top of the page
D) It will be repeated ✅
18. Which is the correct HTML tag for making a text input field?
A) <text>
B) <input type="text">
✅
C) <textfield>
D) <input text>
19. Which is the correct HTML tag for creating a password field?
A) <password>
B) <input password>
C) <input type="password">
✅
D) <pass>
20. What is the correct HTML code for inserting a background image?
A) <body background="image.jpg">
✅
B) <body = "image.jpg">
C) <background = "image.jpg">
D) <bg image="image.jpg">
21. Which option will match when making a bulleted list?
A) Square, disc, polygon
B) Triangle, disc, circle
C) Triangle, square, circle
D) Disc, circle, square ✅
22. What is the meaning of increasing the cell padding?
A) Increase the thickness of the table border
B) Increase the space between cells
C) Increase the distance between cell and content ✅
D) Increase the number of cells
23. Which property of cells will show how many rows a cell should span?
A) Colspan = 5
B) Rowspan = 5 ✅
C) Cellspan = 5
D) Span = 5
24. Which web language gives more control over the HTML elements and allows them to change at any time without returning to the Web server?
A) BML
B) XML
C) HTML
D) DHTML ✅
25. What is the use of forms in HTML?
A) To display a table
B) To display a list
C) To send the data to the server ✅
D) To display email contents
26. The latest HTML standard is:
A) XML
B) SGML
C) HTML 4.0
D) HTML 5.0 ✅
27. “.htm or .html” is the extension of ______.
A) Web page source text ✅
B) Image
C) Video
D) PC application
28. HTML tags are surrounded by which type of brackets?
A) Curly
B) Round
C) Square
D) Angle ✅
29. The HTML tags are ______.
A) In lowercase
B) In uppercase
C) Case sensitive
D) Not case sensitive ✅
30. Which tag is used to display a numbered list?
A) <ul>
B) <ol>
✅
C) <li>
D) <list>
31. Which tag is used to display a bulleted list?
A) <ul>
✅
B) <ol>
C) <li>
D) <list>
32. Which tag is used to define the list item in HTML?
A) <ol>
B) <ul>
C) <li>
✅
D) <item>
33. What is the correct HTML tag for the largest heading?
A) <head>
B) <h6>
C) <h1>
✅
D) <heading>
34. Which tag is used to define an image in HTML?
A) <picture>
B) <img>
✅
C) <image>
D) <src>
35. What does the <br>
tag do in HTML?
A) Makes text bold
B) Inserts a paragraph
C) Inserts a line break ✅
D) Makes text italic
36. Which tag is used to make text italic in HTML?
A) <b>
B) <i>
✅
C) <it>
D) <italic>
37. Which tag is used to make text bold in HTML?
A) <b>
✅
B) <stronger>
C) <bold>
D) <strongest>
38. What is the correct HTML element for inserting a line break?
A) <break>
B) <br>
✅
C) <lb>
D) <line>
39. The <head>
section of an HTML document contains:
A) Content of the web page
B) Metadata and title ✅
C) Graphics
D) Tables
40. The <title>
tag in HTML is used for:
A) Main content heading
B) Displaying title in browser tab ✅
C) Creating headings
D) Adding captions to images
41. Which tag is used to define a hyperlink in HTML?
A) <link>
B) <href>
C) <a>
✅
D) <hyper>
42. Which attribute is used to open a link in a new tab/window?
A) new
B) target=”_blank” ✅
C) open
D) tab
43. Which HTML tag is used for a drop-down list?
A) <input type="dropdown">
B) <select>
✅
C) <dropdown>
D) <option>
44. Which tag is used to define options in a drop-down list?
A) <select>
B) <option>
✅
C) <input>
D) <list>
45. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
A) title
B) alt ✅
C) src
D) name
46. The <marquee>
tag in HTML is used for:
A) Displaying images
B) Scrolling text or image ✅
C) Creating buttons
D) Adding forms
47. The <fieldset>
tag is used for:
A) Adding a form button
B) Selecting options
C) Grouping related elements in a form ✅
D) Adding a search field
48. Which tag is used to create a dropdown list of options in a form?
A) <input>
B) <option>
C) <select>
✅
D) <list>
49. Which tag is used to define a table header?
A) <td>
B) <tr>
C) <th>
✅
D) <thead>
50. Which tag is used to define a table row?
A) <td>
B) <tr>
✅
C) <th>
D) <table>
51. Which tag is used to define a table data/cell?
A) <tr>
B) <td>
✅
C) <table>
D) <th>
52. Which tag is used to create a table in HTML?
A) <tr>
B) <td>
C) <table>
✅
D) <tbody>
53. Which HTML tag is used for the largest size of text?
A) <h3>
B) <h2>
C) <h1>
✅
D) <font size="7">
54. What is the default alignment of content in a table cell?
A) Left
B) Right
C) Center ✅
D) Justify
55. Which tag is used to create a dropdown menu?
A) <menu>
B) <list>
C) <select>
✅
D) <dropdown>
56. What is the correct syntax to include an external CSS file in HTML?
A) <css src="style.css">
B) <style src="style.css">
**C) <link rel="stylesheet" href="style.css"> ✅** D)
style.css`
57. What is the purpose of the <meta>
tag in HTML?
A) Create a heading
B) Display content
C) Provide metadata about the document ✅
D) Add links
58. Which tag is used to create an unordered list in HTML?
A) <ul>
✅
B) <ol>
C) <li>
D) <list>
59. Which HTML tag is used to define internal style sheet?
A) <style src="style.css">
B) <style>
✅
C) <css>
D) <link>
60. Which input type defines a button in HTML forms?
A) <input type="text">
B) <input type="checkbox">
**C) <input type="button"> ✅** D)
`
61. Which HTML attribute is used to define inline styles?
A) font
B) style ✅
C) class
D) styles
62. Which attribute is used to uniquely identify HTML elements?
A) name
B) class
C) id ✅
D) tag
63. Which tag is used to define a section in HTML5?
A) <div>
B) <block>
C) <section>
✅
D) <part>
64. Which tag is used to create an audio file in HTML5?
A) <sound>
B) <media>
C) <audio>
✅
D) <mp3>
65. Which tag is used to play a video in HTML5?
A) <media>
B) <movie>
C) <video>
✅
D) <mp4>
66. The tag <em>
is used to:
A) Make text bold
B) Emphasize the text ✅
C) Underline the text
D) Strike the text
67. Which tag is used to display a tooltip in HTML?
A) <title>
B) <alt>
C) title
attribute inside a tag ✅
D) <tooltip>
68. Which HTML element is used to define navigation links?
A) <link>
B) <navigate>
C) <nav>
✅
D) <menu>
69. Which tag is used to group block-elements and format them with CSS?
A) <span>
B) <div>
✅
C) <group>
D) <section>
70. Which HTML tag is used to define emphasized text?
A) <strong>
B) <em>
✅
C) <b>
D) <italic>
71. What does the <strong>
tag do?
A) Italicize the text
B) Make text bold with strong importance ✅
C) Underline the text
D) Change the font size
72. Which tag is used to define inline text formatting?
A) <div>
B) <span>
✅
C) <p>
D) <section>
73. The <hr>
tag is used to:
A) Draw a box
B) Insert a horizontal line ✅
C) Create a break in a paragraph
D) Create space between images
74. Which tag is used to define a paragraph in HTML?
A) <text>
B) <p>
✅
C) <para>
D) <line>
75. Which attribute is used to specify the destination of a link?
A) src
B) name
C) href ✅
D) link
76. Which tag is used to embed a webpage inside another webpage?
A) <frame>
B) <embed>
C) <iframe>
✅
D) <link>
77. What is the use of the <abbr>
tag in HTML?
A) Make text bold
B) Show abbreviation with tooltip ✅
C) Create anchor link
D) Insert article
78. The default target of a hyperlink opens in:
A) New window
B) Same window ✅
C) New tab
D) Frame
79. Which HTML element is used to define a footer for a document or section?
A) <bottom>
B) <foot>
C) <footer>
✅
D) <end>
80. Which input type is used for selecting multiple values?
A) radio
B) checkbox ✅
C) text
D) select
81. Which element is used to define the main content of a document?
A) <body>
B) <article>
C) <main>
✅
D) <section>
82. Which tag is used to add controls like play, pause, and volume to audio in HTML5?
A) <mp3 controls>
B) <audio controls>
✅
C) <media>
D) <sound>
83. Which tag specifies a header for a document or section?
A) <top>
B) <header>
✅
C) <title>
D) <section>
84. What is the correct HTML for making a checkbox?
A) <input type="check">
**B) <input type="checkbox"> ✅** C)
D)
`
85. Which tag is used to define a client-side script (like JavaScript)?
A) <js>
B) <script>
✅
C) <style>
D) <code>
86. What does the autoplay
attribute do in HTML5 media tags?
A) Repeats the video
B) Hides the media
C) Starts playing automatically ✅
D) Disables controls
87. Which tag is used to specify the source of a video or audio file?
A) <link>
B) <source>
✅
C) <src>
D) <embed>
88. Which tag is used to show computer code in HTML?
A) <script>
B) <pre>
C) <code>
✅
D) <keyboard>
89. Which tag is used to define keyboard input in HTML?
A) <input>
B) <kbd>
✅
C) <key>
D) <button>
90. The <pre>
tag is used to:
A) Add header
B) Display preformatted text ✅
C) Add background
D) Display preview