HTML MCQs
1. What does HTML stand for?
A) Hyperlinks and Text Markup Language
B) Hyper Text Markup Language
C) Home Tool Markup Language
D) Hyper Tool Markup Language
✅ Answer: B) Hyper Text Markup Language
2. Which of these is the correct HTML element for the largest heading?
A) <head>
B) <h6>
C) <h1>
D) <heading>
✅ Answer: C) <h1>
3. What is the correct HTML element for inserting a line break?
A) <break>
B) <lb>
C) <br>
D) <line>
✅ Answer: C) <br>
4. Which tag is used for paragraph in HTML?
A) <p>
B) <para>
C) <pg>
D) <paragraph>
✅ Answer: A) <p>
5. Which HTML attribute specifies an alternate text for an image?
A) alt
B) src
C) title
D) href
✅ Answer: A) alt
6. Which HTML element is used to define important text?
A) <strong>
B) <b>
C) <em>
D) <i>
✅ Answer: A) <strong>
7. Which tag is used to create a hyperlink in HTML?
A) <link>
B) <a>
C) <href>
D) <hyper>
✅ Answer: B) <a>
8. Which attribute is used to open a link in a new tab?
A) target=”_blank”
B) href=”_blank”
C) newtab=”true”
D) open=”new”
✅ Answer: A) target=”_blank”
9. Which HTML element is used for unordered lists?
A) <ul>
B) <ol>
C) <li>
D) <list>
✅ Answer: A) <ul>
10. Which element defines a list item?
A) <list>
B) <li>
C) <ul>
D) <ol>
✅ Answer: B) <li>
11. Which element defines a numbered list?
A) <ul>
B) <ol>
C) <li>
D) <dl>
✅ Answer: B) <ol>
12. What does the <em> tag define?
A) Important text
B) Italic text
C) Bold text
D) Underlined text
✅ Answer: B) Italic text
13. Which tag is used for a horizontal line?
A) <line>
B) <hr>
C) <hl>
D) <break>
✅ Answer: B) <hr>
14. Which attribute specifies the URL of an image?
A) src
B) href
C) link
D) url
✅ Answer: A) src
15. Which attribute is used to provide a tooltip text?
A) alt
B) title
C) tooltip
D) hint
✅ Answer: B) title
16. Which HTML tag is used to display a numbered heading?
A) <h1> to <h6>
B) <heading>
C) <head>
D) <title>
✅ Answer: A) <h1> to <h6>
17. Which element defines the title of the document?
A) <meta>
B) <title>
C) <head>
D) <header>
✅ Answer: B) <title>
18. Where is the metadata of an HTML document defined?
A) <body>
B) <head>
C) <footer>
D) <meta>
✅ Answer: B) <head>
19. Which tag is used to define a table row?
A) <tr>
B) <td>
C) <th>
D) <table>
✅ Answer: A) <tr>
20. Which tag is used to define a table header cell?
A) <tr>
B) <td>
C) <th>
D) <table>
✅ Answer: C) <th>
21. Which tag defines a standard table cell?
A) <td>
B) <th>
C) <tr>
D) <table>
✅ Answer: A) <td>
22. Which element defines a table?
A) <table>
B) <tr>
C) <td>
D) <tbody>
✅ Answer: A) <table>
23. Which tag is used to define a table caption?
A) <caption>
B) <title>
C) <label>
D) <header>
✅ Answer: A) <caption>
24. Which tag is used to define the header of a table section?
A) <thead>
B) <tbody>
C) <tfoot>
D) <table>
✅ Answer: A) <thead>
25. Which tag is used to define the footer of a table section?
A) <tfoot>
B) <tbody>
C) <thead>
D) <table>
✅ Answer: A) <tfoot>
26. Which tag is used for the main content section of a page?
A) <body>
B) <main>
C) <section>
D) <article>
✅ Answer: B) <main>
27. Which element is used to define a section in HTML5?
A) <section>
B) <div>
C) <header>
D) <aside>
✅ Answer: A) <section>
28. Which element represents a self-contained composition in HTML5?
A) <article>
B) <section>
C) <div>
D) <aside>
✅ Answer: A) <article>
29. Which element defines content aside from the main content?
A) <aside>
B) <footer>
C) <header>
D) <nav>
✅ Answer: A) <aside>
30. Which element defines navigation links?
A) <nav>
B) <menu>
C) <ul>
D) <section>
✅ Answer: A) <nav>
31. Which attribute is used for the form submission URL?
A) action
B) method
C) submit
D) href
✅ Answer: A) action
32. Which attribute specifies the HTTP method for a form?
A) action
B) method
C) submit
D) type
✅ Answer: B) method
33. Which input type is used for passwords?
A) text
B) password
C) secret
D) secure
✅ Answer: B) password
34. Which input type is used for email input?
A) email
B) text
C) string
D) mail
✅ Answer: A) email
35. Which element defines a dropdown list in a form?
A) <select>
B) <option>
C) <dropdown>
D) <input type="dropdown">
✅ Answer: A) <select>
36. Which element defines options inside a dropdown list?
A) <select>
B) <option>
C) <input>
D) <list>
✅ Answer: B) <option>
37. Which input type is used for multiple lines of text?
A) <textarea>
B) <input type="text">
C) <input type="textarea">
D) <text>
✅ Answer: A) <textarea>
38. Which input type is used for checkboxes?
A) checkbox
B) check
C) select
D) radio
✅ Answer: A) checkbox
39. Which input type is used for radio buttons?
A) radio
B) button
C) checkbox
D) select
✅ Answer: A) radio
40. Which element is used to create a submit button?
A) <input type="submit">
B) <button type="submit">
C) Both A and B
D) <submit>
✅ Answer: C) Both A and B
41. Which tag is used to embed an image in HTML?
A) <img>
B) <image>
C) <pic>
D) <photo>
✅ Answer: A) <img>
42. Which HTML tag is used to embed video?
A) <video>
B) <movie>
C) <media>
D) <vid>
✅ Answer: A) <video>
43. Which HTML tag is used to embed audio?
A) <audio>
B) <sound>
C) <media>
D) <music>
✅ Answer: A) <audio>
44. Which attribute specifies video/audio source URL?
A) src
B) href
C) link
D) source
✅ Answer: A) src
45. Which tag is used to embed YouTube video using iframe?
A) <iframe>
B) <embed>
C) <video>
D) <object>
✅ Answer: A) <iframe>
46. Which element defines a footer for a document?
A) <footer>
B) <bottom>
C) <end>
D) <section>
✅ Answer: A) <footer>
47. Which attribute is used to make a form field required?
A) required
B) validate
C) mandatory
D) check
✅ Answer: A) required
48. Which tag defines a description list?
A) <dl>
B) <dt>
C) <dd>
D) <list>
✅ Answer: A) <dl>
49. Which tag defines a term in a description list?
A) <dt>
B) <dl>
C) <dd>
D) <term>
✅ Answer: A) <dt>
50. Which tag defines a description in a description list?
A) <dd>
B) <dl>
C) <dt>
D) <desc>
✅ Answer: A) <dd>
51. Which tag is used to merge table cells horizontally?
A) <td colspan="2">
B) <td rowspan="2">
C) <th span="2">
D) <table merge="2">
✅ Answer: A) <td colspan="2">
52. Which tag is used to merge table cells vertically?
A) <td colspan="2">
B) <td rowspan="2">
C) <th rowspan="2">
D) <td merge="2">
✅ Answer: B) <td rowspan="2">
53. Which attribute specifies the width of a table?
A) width
B) size
C) length
D) table-width
✅ Answer: A) width
54. Which attribute specifies the height of a table?
A) height
B) size
C) table-height
D) length
✅ Answer: A) height
55. Which element is used to define a table body section?
A) <tbody>
B) <thead>
C) <tfoot>
D) <body>
✅ Answer: A) <tbody>
56. Which element is used to embed external content like Flash?
A) <embed>
B) <object>
C) <iframe>
D) All of the above
✅ Answer: D) All of the above
57. Which attribute specifies image dimensions?
A) width and height
B) size
C) dimension
D) scale
✅ Answer: A) width and height
58. Which attribute specifies alternate text for audio/video controls?
A) alt
B) title
C) None
D) aria-label
✅ Answer: D) aria-label
59. Which tag is used for inline frame?
A) <iframe>
B) <frame>
C) <frameset>
D) <object>
✅ Answer: A) <iframe>
60. Which attribute is used for embedding inline frames?
A) src
B) href
C) link
D) data
✅ Answer: A) src
61. Which element is used for client-side scripting?
A) <script>
B) <js>
C) <javascript>
D) <code>
✅ Answer: A) <script>
62. Which attribute specifies the scripting language?
A) type
B) lang
C) script
D) language
✅ Answer: A) type
63. Which tag is used to define a checkbox in HTML?
A) <input type="checkbox">
B) <checkbox>
C) <input checkbox>
D) <check>
✅ Answer: A) <input type="checkbox">
64. Which attribute specifies the placeholder text in an input field?
A) placeholder
B) hint
C) value
D) title
✅ Answer: A) placeholder
65. Which attribute specifies the maximum length of an input field?
A) maxlength
B) max
C) size
D) limit
✅ Answer: A) maxlength
66. Which input type is used for file upload?
A) file
B) upload
C) document
D) browse
✅ Answer: A) file
67. Which input type allows selecting a date?
A) date
B) datetime
C) calendar
D) timestamp
✅ Answer: A) date
68. Which input type allows selecting a color?
A) color
B) palette
C) choose
D) paint
✅ Answer: A) color
69. Which tag defines a label for an input field?
A) <label>
B) <caption>
C) <legend>
D) <title>
✅ Answer: A) <label>
70. Which attribute associates a label with an input?
A) for
B) id
C) name
D) label
✅ Answer: A) for
71. Which tag groups related elements in a form?
A) <fieldset>
B) <form>
C) <group>
D) <section>
✅ Answer: A) <fieldset>
72. Which element provides a caption for a fieldset?
A) <legend>
B) <caption>
C) <title>
D) <label>
✅ Answer: A) <legend>
73. Which HTML5 element is used for marking navigation links?
A) <nav>
B) <menu>
C) <list>
D) <navigation>
✅ Answer: A) <nav>
74. Which HTML5 element defines site header?
A) <header>
B) <head>
C) <hgroup>
D) <top>
✅ Answer: A) <header>
75. Which HTML5 element defines the footer of a page?
A) <footer>
B) <bottom>
C) <section>
D) <end>
✅ Answer: A) <footer>
76. Which HTML5 element is used to define independent content?
A) <article>
B) <section>
C) <aside>
D) <div>
✅ Answer: A) <article>
77. Which element is used for sidebar content?
A) <aside>
B) <article>
C) <nav>
D) <section>
✅ Answer: A) <aside>
78. Which tag defines a video with controls?
A) <video controls>
B) <media controls>
C) <movie controls>
D) <clip controls>
✅ Answer: A) <video controls>
79. Which tag defines an audio with controls?
A) <audio controls>
B) <sound controls>
C) <music controls>
D) <play controls>
✅ Answer: A) <audio controls>
80. Which HTML5 tag is used for embedded content like maps?
A) <iframe>
B) <embed>
C) <object>
D) All of the above
✅ Answer: D) All of the above
81. Which attribute is used to autoplay audio/video?
A) autoplay
B) start
C) play
D) run
✅ Answer: A) autoplay
82. Which attribute loops audio/video playback?
A) loop
B) repeat
C) infinite
D) cycle
✅ Answer: A) loop
83. Which HTML tag defines a progress bar?
A) <progress>
B) <meter>
C) <status>
D) <bar>
✅ Answer: A) <progress>
84. Which HTML tag defines a gauge?
A) <meter>
B) <progress>
C) <gauge>
D) <status>
✅ Answer: A) <meter>
85. Which attribute specifies the form an input belongs to?
A) form
B) id
C) name
D) action
✅ Answer: A) form
86. Which input type is used for hidden data?
A) hidden
B) secret
C) invisible
D) none
✅ Answer: A) hidden
87. Which tag defines a document section with an aside note?
A) <aside>
B) <section>
C) <div>
D) <article>
✅ Answer: A) <aside>
88. Which element defines highlighted text?
A) <mark>
B) <highlight>
C) <em>
D) <strong>
✅ Answer: A) <mark>
89. Which tag is used for subscript text?
A) <sub>
B) <sup>
C) <small>
D) <lower>
✅ Answer: A) <sub>
90. Which tag is used for superscript text?
A) <sup>
B) <sub>
C) <big>
D) <raise>
✅ Answer: A) <sup>
91. Which tag is used to define sample output from a program?
A) <samp>
B) <code>
C) <pre>
D) <output>
✅ Answer: A) <samp>
92. Which tag is used for computer code?
A) <code>
B) <samp>
C) <pre>
D) <var>
✅ Answer: A) <code>
93. Which tag is used to define a variable?
A) <var>
B) <code>
C) <samp>
D) <let>
✅ Answer: A) <var>
94. Which tag defines preformatted text?
A) <pre>
B) <code>
C) <samp>
D) <p>
✅ Answer: A) <pre>
95. Which attribute specifies the language of a document?
A) lang
B) language
C) type
D) xml:lang
✅ Answer: A) lang
96. Which attribute defines an element’s unique identifier?
A) id
B) class
C) name
D) key
✅ Answer: A) id
97. Which attribute defines one or more classes for an element?
A) class
B) id
C) type
D) style
✅ Answer: A) class
98. Which tag is used for inserted text?
A) <ins>
B) <del>
C) <mark>
D) <add>
✅ Answer: A) <ins>
99. Which tag is used for deleted text?
A) <del>
B) <ins>
C) <mark>
D) <remove>
✅ Answer: A) <del>
100. Which element is used for main headings in HTML5?
A) <h1>
B) <heading>
C) <title>
D) <head>
✅ Answer: A) <h1>
101. Which HTML5 element is used to define a container for graphics like <canvas>?
A) <canvas>
B) <svg>
C) <graphics>
D) <draw>
✅ Answer: A) <canvas>
102. Which method is used to draw on a <canvas> in HTML5?
A) getContext(“2d”)
B) draw()
C) render()
D) paint()
✅ Answer: A) getContext(“2d”)
103. Which HTML5 element is used for scalable vector graphics?
A) <svg>
B) <canvas>
C) <vector>
D) <img>
✅ Answer: A) <svg>
104. Which HTML5 element is used for embedded interactive content?
A) <object>
B) <embed>
C) <iframe>
D) All of the above
✅ Answer: D) All of the above
105. Which attribute specifies the dimensions of a <canvas>?
A) width and height
B) size
C) length
D) dimension
✅ Answer: A) width and height
106. Which HTML5 element represents a self-contained piece of content intended to be reusable?
A) <article>
B) <section>
C) <aside>
D) <div>
✅ Answer: A) <article>
107. Which HTML5 element defines a section in a document?
A) <section>
B) <div>
C) <span>
D) <content>
✅ Answer: A) <section>
108. Which attribute defines media queries for responsive design?
A) media
B) query
C) src
D) viewport
✅ Answer: A) media
109. Which HTML5 element is used for website navigation links?
A) <nav>
B) <menu>
C) <ul>
D) <header>
✅ Answer: A) <nav>
110. Which HTML5 element defines content independent from the main content?
A) <aside>
B) <section>
C) <article>
D) <main>
✅ Answer: A) <aside>
111. Which HTML5 element is used to group content at the bottom of a document or section?
A) <footer>
B) <bottom>
C) <section>
D) <aside>
✅ Answer: A) <footer>
112. Which element defines the header of a document or section?
A) <header>
B) <head>
C) <top>
D) <title>
✅ Answer: A) <header>
113. Which HTML5 element is used to specify an independent block of content?
A) <article>
B) <section>
C) <aside>
D) <div>
✅ Answer: A) <article>
114. Which element is used to define a footer for an article?
A) <footer>
B) <bottom>
C) <aside>
D) <section>
✅ Answer: A) <footer>
115. Which HTML5 element is used to display dynamic text or output from scripts?
A) <output>
B) <result>
C) <display>
D) <script-output>
✅ Answer: A) <output>
116. Which element is used to define a progress bar?
A) <progress>
B) <meter>
C) <status>
D) <bar>
✅ Answer: A) <progress>
117. Which element represents a scalar measurement within a known range?
A) <meter>
B) <progress>
C) <range>
D) <gauge>
✅ Answer: A) <meter>
118. Which HTML5 attribute specifies that a form field must be filled out before submitting?
A) required
B) validate
C) mandatory
D) check
✅ Answer: A) required
119. Which HTML5 input type defines a slider control?
A) range
B) slider
C) number
D) scroll
✅ Answer: A) range
120. Which input type allows specifying a search field?
A) search
B) text
C) find
D) query
✅ Answer: A) search
121. Which input type allows selecting time?
A) time
B) date
C) datetime
D) clock
✅ Answer: A) time
122. Which input type allows specifying month and year only?
A) month
B) date
C) week
D) datetime-local
✅ Answer: A) month
123. Which HTML5 element is used to display output from scripts?
A) <output>
B) <result>
C) <display>
D) <code>
✅ Answer: A) <output>
124. Which attribute allows multiple file selection in input type=”file”?
A) multiple
B) multi
C) files
D) all
✅ Answer: A) multiple
125. Which input type allows selection of week and year?
A) week
B) month
C) date
D) datetime
✅ Answer: A) week
126. Which HTML5 element allows drawing graphics via JavaScript?
A) <canvas>
B) <svg>
C) <graphic>
D) <draw>
✅ Answer: A) <canvas>
127. Which element defines a container for an image map?
A) <map>
B) <area>
C) <imgmap>
D) <imagemap>
✅ Answer: A) <map>
128. Which element defines a clickable area inside an image map?
A) <area>
B) <map>
C) <link>
D) <img>
✅ Answer: A) <area>
129. Which attribute specifies the target URL of a clickable area in an image map?
A) href
B) src
C) link
D) url
✅ Answer: A) href
130. Which HTML5 attribute specifies placeholder text in an input field?
A) placeholder
B) hint
C) value
D) title
✅ Answer: A) placeholder
131. Which HTML5 attribute specifies a regular expression for input validation?
A) pattern
B) validate
C) regex
D) expression
✅ Answer: A) pattern
132. Which HTML5 attribute specifies the type of data allowed in an input?
A) type
B) format
C) datatype
D) inputtype
✅ Answer: A) type
133. Which element allows embedding audio content?
A) <audio>
B) <sound>
C) <music>
D) <media>
✅ Answer: A) <audio>
134. Which attribute allows preloading audio or video?
A) preload
B) load
C) ready
D) start
✅ Answer: A) preload
135. Which attribute allows specifying controls for audio/video?
A) controls
B) play
C) show
D) interface
✅ Answer: A) controls
136. Which HTML5 element is used for client-side scripts?
A) <script>
B) <javascript>
C) <js>
D) <code>
✅ Answer: A) <script>
137. Which attribute specifies the source of a <script> file?
A) src
B) href
C) link
D) file
✅ Answer: A) src
138. Which HTML5 element is used for templates that are not displayed until invoked?
A) <template>
B) <script>
C) <fragment>
D) <clone>
✅ Answer: A) <template>
139. Which element defines embedded interactive content like Flash?
A) <object>
B) <embed>
C) <iframe>
D) All of the above
✅ Answer: D) All of the above
140. Which attribute specifies MIME type for <object>?
A) type
B) src
C) mime
D) format
✅ Answer: A) type
141. Which attribute specifies the height of <video> or <audio>?
A) height
B) size
C) dimension
D) length
✅ Answer: A) height
142. Which attribute specifies the width of <video> or <audio>?
A) width
B) size
C) dimension
D) length
✅ Answer: A) width
143. Which HTML5 element is used to define a navigation menu?
A) <nav>
B) <menu>
C) <ul>
D) <ol>
✅ Answer: A) <nav>
144. Which HTML5 element defines content for the sidebar?
A) <aside>
B) <section>
C) <div>
D) <article>
✅ Answer: A) <aside>
145. Which attribute specifies the target frame for a link?
A) target
B) href
C) frame
D) src
✅ Answer: A) target
146. Which value of target opens link in a new window or tab?
A) _blank
B) _self
C) _parent
D) _top
✅ Answer: A) _blank
147. Which input type allows selection of a range of numbers via slider?
A) range
B) number
C) slider
D) scroll
✅ Answer: A) range
148. Which attribute specifies minimum value for <input type="number">?
A) min
B) minimum
C) start
D) value
✅ Answer: A) min
149. Which attribute specifies maximum value for <input type="number">?
A) max
B) maximum
C) end
D) value
✅ Answer: A) max
150. Which HTML5 element defines content independent from main content?
A) <article>
B) <section>
C) <aside>
D) <div>
✅ Answer: A) <article>
151. Which HTML5 element is used for embedding content like interactive widgets?
A) <object>
B) <embed>
C) <iframe>
D) All of the above
✅ Answer: D) All of the above
152. Which attribute specifies the width of <canvas>?
A) width
B) size
C) length
D) dimension
✅ Answer: A) width
153. Which attribute specifies the height of <canvas>?
A) height
B) size
C) length
D) dimension
✅ Answer: A) height
154. Which HTML5 API is used to draw 2D graphics?
A) Canvas API
B) WebGL API
C) SVG API
D) Graphics API
✅ Answer: A) Canvas API
155. Which HTML5 element defines a container for SVG graphics?
A) <svg>
B) <canvas>
C) <graphic>
D) <draw>
✅ Answer: A) <svg>
156. Which HTML5 element is used to display media with subtitles?
A) <track>
B) <caption>
C) <subtitle>
D) <media>
✅ Answer: A) <track>
157. Which attribute specifies the language of subtitles or captions?
A) srclang
B) lang
C) type
D) captionlang
✅ Answer: A) srclang
158. Which attribute specifies the default track for video/audio?
A) default
B) active
C) selected
D) primary
✅ Answer: A) default
159. Which element allows embedding audio with multiple sources?
A) <audio>
B) <sound>
C) <media>
D) <music>
✅ Answer: A) <audio>
160. Which element allows embedding video with multiple sources?
A) <video>
B) <movie>
C) <clip>
D) <media>
✅ Answer: A) <video>
161. Which attribute specifies multiple sources for <video> or <audio>?
A) <source>
B) srcset
C) media
D) type
✅ Answer: A) <source>
162. Which element defines a description list?
A) <dl>
B) <dt>
C) <dd>
D) <list>
✅ Answer: A) <dl>
163. Which tag defines a term in a description list?
A) <dt>
B) <dd>
C) <dl>
D) <term>
✅ Answer: A) <dt>
164. Which tag defines a description in a description list?
A) <dd>
B) <dt>
C) <dl>
D) <desc>
✅ Answer: A) <dd>
165. Which HTML5 element allows defining custom reusable content fragments?
A) <template>
B) <script>
C) <fragment>
D) <clone>
✅ Answer: A) <template>
166. Which HTML5 attribute specifies that input should be automatically focused?
A) autofocus
B) focus
C) active
D) select
✅ Answer: A) autofocus
167. Which HTML5 attribute disables an input field?
A) disabled
B) readonly
C) lock
D) block
✅ Answer: A) disabled
168. Which HTML5 attribute makes an input field read-only?
A) readonly
B) disabled
C) lock
D) fixed
✅ Answer: A) readonly
169. Which input type allows entering date and time locally?
A) datetime-local
B) date
C) time
D) timestamp
✅ Answer: A) datetime-local
170. Which input type allows capturing email addresses?
A) email
B) text
C) string
D) mail
✅ Answer: A) email
171. Which input type allows entering a URL?
A) url
B) link
C) text
D) href
✅ Answer: A) url
172. Which input type allows entering a number?
A) number
B) text
C) integer
D) numeric
✅ Answer: A) number
173. Which input type allows entering a telephone number?
A) tel
B) phone
C) number
D) contact
✅ Answer: A) tel
174. Which HTML5 element represents a container for interactive content not displayed until invoked?
A) <dialog>
B) <modal>
C) <popup>
D) <window>
✅ Answer: A) <dialog>
175. Which method opens a <dialog> element?
A) show()
B) open()
C) display()
D) visible()
✅ Answer: A) show()
176. Which method shows a <dialog> modally?
A) showModal()
B) show()
C) open()
D) display()
✅ Answer: A) showModal()
177. Which HTML5 attribute allows preloading videos?
A) preload
B) autoplay
C) buffer
D) load
✅ Answer: A) preload
178. Which HTML5 attribute specifies a poster image for video?
A) poster
B) preview
C) thumbnail
D) cover
✅ Answer: A) poster
179. Which HTML5 attribute allows media to start playing automatically?
A) autoplay
B) start
C) play
D) load
✅ Answer: A) autoplay
180. Which HTML5 attribute allows looping media playback?
A) loop
B) repeat
C) cycle
D) infinite
✅ Answer: A) loop
181. Which element defines a container for tabular data?
A) <table>
B) <tr>
C) <td>
D) <th>
✅ Answer: A) <table>
182. Which attribute specifies table border width?
A) border
B) frame
C) cellpadding
D) spacing
✅ Answer: A) border
183. Which attribute specifies space between table cells?
A) cellspacing
B) cellpadding
C) spacing
D) gap
✅ Answer: A) cellspacing
184. Which attribute specifies padding inside table cells?
A) cellpadding
B) cellspacing
C) padding
D) margin
✅ Answer: A) cellpadding
185. Which HTML5 element defines an independent piece of content suitable for syndication?
A) <article>
B) <section>
C) <aside>
D) <div>
✅ Answer: A) <article>
186. Which HTML5 element defines a thematic grouping of content?
A) <section>
B) <article>
C) <aside>
D) <div>
✅ Answer: A) <section>
187. Which HTML5 element defines sidebar content?
A) <aside>
B) <section>
C) <div>
D) <article>
✅ Answer: A) <aside>
188. Which HTML5 element defines content that should be emphasized?
A) <mark>
B) <em>
C) <strong>
D) <b>
✅ Answer: A) <mark>
189. Which HTML5 element is used to indicate deleted text?
A) <del>
B) <ins>
C) <strike>
D) <remove>
✅ Answer: A) <del>
190. Which HTML5 element is used to indicate inserted text?
A) <ins>
B) <del>
C) <add>
D) <mark>
✅ Answer: A) <ins>
191. Which attribute specifies a tooltip for an element?
A) title
B) alt
C) hint
D) tooltip
✅ Answer: A) title
192. Which attribute specifies alternate text for images?
A) alt
B) title
C) description
D) tooltip
✅ Answer: A) alt
193. Which attribute specifies a CSS class for an element?
A) class
B) id
C) type
D) style
✅ Answer: A) class
194. Which attribute specifies a unique identifier for an element?
A) id
B) class
C) key
D) name
✅ Answer: A) id
195. Which attribute defines inline CSS styles?
A) style
B) css
C) class
D) format
✅ Answer: A) style
196. Which HTML5 element defines content that is independent from main content?
A) <article>
B) <section>
C) <aside>
D) <div>
✅ Answer: A) <article>
197. Which element defines a paragraph?
A) <p>
B) <para>
C) <pg>
D) <text>
✅ Answer: A) <p>
198. Which element defines a line break?
A) <br>
B) <lb>
C) <break>
D) <hr>
✅ Answer: A) <br>
199. Which element defines a horizontal rule?
A) <hr>
B) <line>
C) <break>
D) <rule>
✅ Answer: A) <hr>
200. Which element defines the main content of an HTML5 document?
A) <main>
B) <body>
C) <section>
D) <article>
✅ Answer: A) <main>