HTML MCQ Practice

300 Questions

HTML MCQ

Soopro Pathshala provides HTML Multiple Choice Questions for practice.

1. How many sizes of headers are available in HTML by default?
a) 1
b) 2
c) 3
d) 6
2. What is the smallest header in HTML by default?
a) h1
b) h2
c) h3
d) h6
3. What are the types of lists available in HTML?
a) ordered, unordered lists
b) bulleted, numbered lists
c) named, unnamed lists
d) none of the above
4. HTML files are saved by default with the extension?
a) .html
b) .h
c) .ht
d) none of the above
5. In which part of the HTML metadata is contained?
a) head tag
b) title tag
c) html tag
d) body tag
6. Which element is used to get highlighted text in HTML5?
a) u tag
b) mark tag
c) highlight tag
d) b tag
7. Which of the following elements in HTML5 defines video or movie content?
a) video tag
b) movie tag
c) audio tag
d) media tag
8. Which of the following is not the element associated with the HTML table layout?
a) alignment
b) color
c) size
d) spanning
9. How to create an unordered list in HTML?
a) ul tag
b) ol tag
c) li tag
d) i tag
10. How to create an ordered list in HTML?
a) ul tag
b) ol tag
c) li tag
d) i tag
11. Which of the following tag is used to define options in a drop-down selection list?
a) select tag
b) list tag
c) dropdown
d) option
12. Which of the following tag is used to add rows in the table?
a) td
b) th
c) tr
d) none of the above
13. The hr tag in HTML is used for -
a) new line
b) vertical ruler
c) new paragraph
d) horizontal ruler
14. The body tag is usually used after___
a) HTML tag
b) EM tag
c) TITLE tag
d) HEAD tag
15. Choose the correct HTML tag to make a text italic.
a) i tag
b) italic tag
c) it tag
d) il tag
16. What does the br tag add to your webpage?
a) Long break
b) Paragraph break
c) Line break
d) None of the above
17. The first tag inside table tag is ______
a) head tag
b) caption tag
c) th tag
d) td tag
18. The symbol used at the beginning of the HREF text is
a) @
b) &
c) $
d) #
19. What kind of list will ol tag create?
a) Numbered list
b) Bulleted list
c) unordered list
d) none of the above
20. HTML tags are recognized by___
a) <
b) <= =>
c) < >
d) none of the above
21. Choose the correct HTML tag to make a text bold
a) bd tag
b) bold tag
c) bl tag
d) b tag
22. Gif and jpg are the two main types of what?
a) animated effects
b) videos
c) images
d) none of the above
23. Which tag can set the background color for your page?
a) body tag
b) font tag
c) head tag
d) title tag
24. Which character is used to represent when a tag is closed in HTML?
a) #
b) !
c) /
d) \
25. Among the following, which is the HTML paragraph tag?
a) p tag
b) pre tag
c) hr tag
d) a tag
26. Which HTML element is sued for short quote?
a) em tag
b) abbr tag
c) q tag
d) blockquote
27. Which tag is used to create a dropdown in HTML Form?
a) input tag
b) select tag
c) text tag
d) textarea tag
28. Full form of td tag?
a) table data
b) table heading
c) table row
d) none of these
29. Which tag is used to create a blank line in HTML?
a) b tag
b) br tag
c) em tag
d) a tag
30. Which works similar to b element?
a) blockquote
b) strong
c) em
d) i
31. What is the current version of HTML5?
a) HTML 5
b) HTML 1.0
c) HTML 1
d) none of these
32. Which tag is used to insert images into your web page?
a) img
b) scr
c) im
d) none of the above
33. Which of the following will not be found in the head section?
a) table tag
b) meta tag
c) title tag
d) none of the above
34. What will be the added by using td tag?
a) rows
b) steps
c) cell
d) columns
35. Which format usually works best for photos?
a) HTML
b) GIF
c) JPG
d) all of the above
36. Which tag is used to add columns to tables?
a) td tag
b) tr tag
c) th tag
d) colspan
37. The HTML tgs are all?
a) in lower case
b) in upper case
c) case sensitive
d) not case sensitive
38. Which tag tells where a link starts?
a) a tag
b) i tag
c) body tag
d) none of the above
39. What is the correct HTML tag for inserting a line break
a) break tag
b) lb tag
c) pre tag
d) br tag
40. Tags and text do not show directly on the page are placed in.
a) head tag
b) body tag
c) title tag
d) none of the above
41. To create a list using lowercase letters, use
a) <ol “a”>
b) <ol=”a”>
c) <ol letter=”a”>
d) <ol type=”a”>
42. Where do you place the <title> tag in HTML?
a) Base
b) Head
c) Body
d) none of the above
43. To start a numbered list with regular numerals, use
a) <ol type=”I”>
b) <ol type=”a”>
c) <ol type=”A”>
d) <ol type=”1”>
44. The symbol used at the beginning of the HREF text is
a) @
b) &
c) $
d) #
45. The default value of BORDER attribute is
a) 1 pixel
b) 2 pixel
c) 3 pixel
d) none of the above
46. The most basic element of any HTML page is
a) ASCII text
b) text
c) BCD text
d) none of the above
47. Which attribute is used to name an element uniquely?
a) class
b) id
c) dot
d) all of the above
48. Text with tag is diplayed as
a) list
b) italic
c) underline
d) bold
49. Which of the following HTML attribute is used to define inline styles?
a) style
b) type
c) class
d) none of the above
50. Which of the following HTML element is used for canvas graphics?
a) <css></css>
b) <paint>
c) <canvas>
d) <graphic>
51. HTML contents with no content are called _____
a) empty elements
b) elements
c) html elements
d) none of these
52. __ provides additional information about html elements
a) attributes
b) elements
c) html tags
d) none of these
53. Attributes provide _______about elements.
a) additional information
b) corresponding information
c) general information
d) none of these
54. Which attribute is used to uniquely identifies an element?
a) id
b) class
c) css
d) none of these
55. Which html attribute is used to specifies inline CSS styles?
a) id
b) style
c) class
d) none of these
56. Which attribute specifies the URL of a link?
a) src
b) style
c) class
d) href
57. Which element always starts on a new line, and is usually a block of text?
a) paragraph
b) horizontal line
c) vertical line
d) none of these
58. Which elements help to style and format the content of a webpage.
a) HTML formatting
b) html tag
c) bold element
d) italic element
59. Which tag is used to make text bold?
a) b tag
b) strong tag
c) italic tag
d) none of these
60. Which tag is used to define mark text?
a) mark
b) u
c) i
d) none of these
61. Which target attributs Opens the document in the same window/tab as it was clicked?
a) _self
b) _blank
c) _parent
d) _top
62. Which target attributes Opens the document in a new window or tab
a) _self
b) _blank
c) _parent
d) _top
63. Which target attributes Opens the document in the parent frame
a) _self
b) _blank
c) _parent
d) _top
64. Which target attributes Opens the document in the full body of the window
a) _self
b) _blank
c) _parent
d) _top
65. Which option is useful for description of the image, useful for accessibility and when the image cannot be displayed.
a) src
b) alt
c) width
d) height
66. Which Tag Used to embed images in a webpage?
a) <img>
b) <src>
c) hr
d) br
67. Which Tag Used to embed images in a webpage?
a) <img>
b) <src>
c) hr
d) br
68. HTML ___ are not displayed in the browser, but they can help document your HTML source code.
a) comments
b) title
c) heading
d) paragraph
69. HTML ___ element defines a section that is quoted from another source. Browsers usually indent ____elements.
a) blockquote
b) q tag
c) address tag
d) none of these
70. HTML ___ tag defines a short quotation.
a) blockquote
b) q tag
c) address tag
d) none of these
71. The HTML ____ tag defines an abbreviation or an acronym
a) blockquote
b) q tag
c) address tag
d) abbr
72. The HTML ___ tag defines the contact information for the author/owner of a document or an article.
a) blockquote
b) q tag
c) address tag
d) abbr
73. HTML ___ allow web developers to arrange data into rows and columns.
a) blockquote
b) q tag
c) address tag
d) table
74. Each table cell is defined by a ___.
a) td
b) tr
c) th
d) none of the above
75. Each table row starts with a ___
a) td
b) tr
c) th
d) none of the above
76. Sometimes you want your cells to be table header cells. In those cases use the ___ tag
a) td
b) tr
c) th
d) none of the above
77. ___ is used to make a cell span multiple columns.
a) colspan
b) rowspan
c) th
d) none of the above
78. ___ is used to make a cell span multiple rows..
a) colspan
b) rowspan
c) th
d) none of the above
79. HTML ____allow web developers to group a set of related items in lists.
a) lists
b) rowspan
c) th
d) none of the above
80. The __ element is used as a container for other HTML elements..
a) div
b) lists
c) th
d) none of the above
81. The HTML ____ element is used to draw graphics on a web page.
a) canvas
b) style
c) script
d) none of these
82. _____Allows users to select one or more options from a dropdown.
a) select dropdownlist
b) paragraph
c) margin
d) none of these
83. ________Used to associate labels with form elements for better accessibility
a) Labels
b) Textarea
c) inputbox
d) none of these
84. The HTML ____ element is the most used form element.
a) input
b) output
c) id
d) style
85. An ____ is used to collect user input
a) html form
b) input form
c) input button
d) none of these
86. The _____ tag is used to include external resources, typically for stylesheets
a) link
b) body
c) head
d) none of these
87. ____Defines the title of the webpage shown in the browsers title bar or tab.
a) title
b) head
c) body
d) none of these`
88. The _____ element specifies the base URL and/or target for all relative URLs in a page
a) base
b) link
c) style
d) none of these`
89. The _____ element is used to define client-side JavaScripts.
a) script
b) style
c) link
d) none of these`
90. The ___ element defines the relationship between the current document and an external resource.
a) link
b) head
c) body
d) none of these`
91. The _____ element defines the title of the document.
a) title
b) body
c) head
d) none of these`
92. HTML ____ is data about the HTML document. Metadata is not displayed.
a) metadata
b) head
c) title
d) body
93. The HTML ______ element is a container for the following elements: title, style,meta, link, script, and base.
a) head
b) body
c) meta
d) none of these
94. An inline frame ___ is a HTML element that loads another HTML page within the document..
a) iframe
b) html form
c) google form
d) none of these
95. The HTML ___ attribute is used to specify a unique id for an HTML element.
a) class
b) id
c) google form
d) none of these
96. The HTML __ attribute is used to specify a class for an HTML element.
a) class
b) id
c) google form
d) none of these
97. ____Target all elements of a specific type
a) element selectors
b) class selectors
c) id selectors
d) none of these
98. _____Style applied directly within HTML elements using the style attribute
a) inline css
b) internal css
c) external css
d) none of these
99. The HTML ____ attribute is used to add styles to an element, such as color, font, size, and more.
a) style
b) div
c) span
d) none of these
100. __is a block-level element, meaning it takes up the full width of its parent container by default, and starts on a new line.
a) style
b) div
c) span
d) none of these
101. ____defines vector-based graphics in XML, which can be directly embedded in HTML pages.
a) style
b) div
c) SVG
d) none of these
102. The HTML ____ is a container for SVG graphics.
a) style
b) svg element
c) div
d) none of these
103. ____ is rendered pixel by pixel
a) canvas
b) svg element
c) div
d) none of these
104. ____ is rendered pixel by pixel
a) canvas
b) svg element
c) div
d) none of these
105. An ____ is a HTML element that loads another HTML page within the document.
a) canvas
b) svg element
c) inline iframe
d) none of these
106. Each table cell is defined by a __ tag..
a) th
b) td
c) tr
d) none of these
107. A table can have a ____ element to describe the table’s purpose or content
a) caption
b) td
c) tr
d) none of these
108. The HTML ____ tag defines the contact information for the author or owner of a document or an article.
a) caption
b) td
c) address
d) none of these
109. ___ are also part of the code, which gives an explanation of the code.
a) caption
b) td
c) comments
d) none of these
110. ___Specifies the path URL or local file path to the image file. It’s mandatory.
a) src attribute
b) alt attribute
c) comments
d) none of these
111. A _____ always starts on a new line, and is usually a block of text.
a) src attribute
b) alt attribute
c) paragraph
d) none of these
112. Headings are important for ___ and accessibility.
a) SEO
b) alt attribute
c) paragraph
d) none of these
113. The ____ element contains the visible page content.
a) body
b) alt attribute
c) paragraph
d) none of these
114. The ___ element defines a large heading.
a) body
b) alt attribute
c) h1
d) none of these
115. An ____ is used to collect user input
a) HTML form
b) alt attribute
c) h1
d) none of these
116. ____ Collects plain text
a) Text input
b) alt attribute
c) h1
d) none of these
117. The HTML ____ used to create a link.
a) a element
b) alt attribute
c) h1
d) none of these
118. The ___ element is used to define client-side JavaScripts.
a) a element
b) alt attribute
c) script
d) none of these
119. The _____ element specifies the base URL and/or target for all relative URLs in a page..
a) a element
b) base
c) script
d) none of these
120. The text in the ____ element usually renders in italic.
a) a element
b) cite
c) script
d) none of these
121. What does HTML stand for?
a) Hyper Text Markup Language
b) High Text Machine Language
c) Hyper Transfer Markup Language
d) Hyper Tool Multi Language
122. What is the correct extension of an HTML file?
a) .ht
b) .html
c) .hml
d) .xml
123. Which tag is used for the largest heading in HTML?
a) <h6>
b) <head>
c) <h1>
d) <heading>
124. Which tag is used to create a paragraph in HTML?
a) <para>
b) <p>
c) <pg>
d) <text>
125. Which tag is used for a line break in HTML?
a) <break>
b) <lb>
c) <br>
d) <line>
126. Which tag is used to insert an image in HTML?
a) <img>
b) <image>
c) <pic>
d) <src>
127. Which tag is used to create a hyperlink in HTML?
a) <link>
b) <a>
c) <href>
d) <url>
128. Which is the root tag of an HTML document?
a) <body>
b) <head>
c) <title>
d) <html>
129. Which tag is used to define the title of a webpage?
a) <meta>
b) <title>
c) <head>
d) <body>
130. Which tag is used for an ordered list in HTML?
a) <ul>
b) <li>
c) <ol>
d) <list>
131. Which tag is used for an unordered list in HTML?
a) <ol>
b) <ul>
c) <li>
d) <list>
132. Which tag is used to define a list item?
a) <li>
b) <list>
c) <item>
d) <ul>
133. Which tag is used to create a table in HTML?
a) <tb>
b) <table>
c) <tr>
d) <td>
134. Which tag is used to define a table row?
a) <td>
b) <th>
c) <tr>
d) <row>
135. Which tag is used to define table data in HTML?
a) <td>
b) <th>
c) <tr>
d) <data>
136. What is the correct syntax for an HTML comment?
a) //comment
b) /* comment */
c) <!-- comment -->
d) # comment
137. Which attribute is used to set background color in HTML?
a) color
b) bgcolor
c) background
d) style
138. Which tags are used to make text bold in HTML?
a) <strong>
b) <bold>
c) <b>
d) Both A and C
139. Which tag is used to make text italic in HTML?
a) <italic>
b) <i>
c) <it>
d) <emphasis>
140. Which tag is used to create a form in HTML?
a) <input>
b) <form>
c) <textbox>
d) <data>
141. Which tag is used to create an input field in HTML?
a) <field>
b) <textbox>
c) <input>
d) <text>
142. Which input type is used for a checkbox?
a) text
b) radio
c) checkbox
d) check
143. Which input type is used for a radio button?
a) button
b) radio
c) option
d) select
144. Which tag is used to create a horizontal line in HTML?
a) <line>
b) <hr>
c) <br>
d) <h1>
145. Is HTML case-sensitive?
a) Yes
b) No
c) Sometimes
d) Only in Unix
146. In which section is the visible content of a webpage written?
a) <head>
b) <meta>
c) <body>
d) <title>
147. Which tag is used to add audio in HTML?
a) <sound>
b) <music>
c) <audio>
d) <mp3>
148. Which tag is used to add video in HTML?
a) <media>
b) <movie>
c) <video>
d) <mp4>
149. Which tag is used to create a dropdown list in HTML?
a) <option>
b) <list>
c) <select>
d) <dropdown>
150. HTML is which type of language?
a) Programming Language
b) Markup Language
c) Database Language
d) Scripting Language
151. Which tag is used to define the document type in HTML5?
a) <document>
b) <doctype>
c) <!DOCTYPE html>
d) <html5>
152. Which HTML tag is used to create a checkbox?
a) <check>
b) <input type="checkbox">
c) <checkboxl>
d) <tick>
153. Which attribute specifies an alternate text for an image?
a) title
b) src
c) alt
d) href
154. Which tag is used to create a numbered list?
a) <ul>
b) <ol>
c) <li>
d) <dl>
155. Which HTML element is used for inserting a footer?
a) <bottom>
b) <footer>
c) <end>
d) <section>
156. Which tag is used to define important text?
a) <important>
b) <strong>
c) <b>
d) <imp>
157. Which attribute is used to open a link in a new tab?
a) new
b) target="_blank"
c) open
d) href="_new"
158. Which tag is used to insert a background audio file in HTML5?
a) <music>
b) <audio>
c) <sound>
d) <media>
159. Which tag is used to create a dropdown option?
a) <option>
b) <select>
c) <dropdown>
d) <choice>
160. Which HTML tag is used to display preformatted text?
a) <text>
b) <pre>
c) <format>
d) <code>
161. Which tag is used to insert a scrolling text in old HTML versions?
a) <scroll>
b) <move>
c) <marquee>
d) <slider>
162. Which attribute is used to provide the URL of an image?
a) href
b) src
c) alt
d) link
163. Which tag is used for creating a text area in HTML?
a) <textbox>
b) <input>
c) <textarea>
d) <text>
164. Which tag is used to define metadata in HTML?
a) <meta>
b) <data>
c) <head>
d) <info>
165. Which tag is used to define navigation links?
a) <navigate>
b) <nav>
c) <links>
d) <menu>
166. Which input type is used to hide entered characters?
a) <text>
b) <hidden>
c) <password>
d) <secure>
167. Which tag is used to define a table header cell?
a) <td>
b) <th>
c) <tr>
d) <thead>
168. Which HTML tag is used to insert JavaScript code?
a) <JavaScript>
b) <js>
c) <script>
d) <code>
169. Which tag is used to define a division or section in HTML?
a) <section>
b) <div>
c) <group>
d) <span>
170. Which attribute is used to uniquely identify an HTML element?
a) class
b) name
c) id
d) type
171. Which tag is used to create a clickable button?
a) <btn>
b) <click>
c) <button>
d) <input>
172. Which HTML element is used for the largest text heading?
a) <heading>
b) <h6>
c) <head>
d) <h1>
173. Which tag is used to underline text in HTML?
a) <underline>
b) <u>
c) <ul>
d) <und>
174. Which HTML tag is used to create a line across the page?
a) <line>
b) <hr>
c) <br>
d) <border>
175. Which tag is used to group form elements together?
a) <group>
b) <fieldset>
c) <formgroup>
d) <legend>
176. Which tag is used to define a caption for a table?
a) <title>
b) <caption>
c) <head>
d) <label>
177. Which HTML element is used for inline styling?
a) class
b) styles
c) style
d) font
178. Which HTML tag is used to display computer code?
a) <code>
b) <pre>
c) <program>
d) <codetext>
179. Which HTML tag is used to define emphasized text?
a) <em>
b) <italic>
c) <strong>
d) <highlight>
180. Which HTML tag is used to define the body section of a webpage?
a) <main>
b) <section>
c) <body>
d) <content>
181. Which HTML tag is used to create a hyperlink?
a) <link>
b) <a>
c) <href>
d) <url>
182. Which attribute is used with the <a> tag to specify the link address?
a) <src>
b) <href>
c) <link>
d) <url>
183. Which tag is used to insert an image in HTML?
a) <picture>
b) <img>
c) <src>
d) <image>
184. Which HTML element is used to define the main content of a document?
a) <main>
b) <content>
c) <section>
d) <body>
185. Which tag is used to create a form label in HTML?
a) <caption>
b) <label>
c) <formlabel>
d) <text>
186. Which input type allows users to select a file?
a) text
b) upload
c) file
d) document
187. Which HTML tag is used to create a dropdown menu?
a) <dropdown>
b) <option>
c) <select>
d) <menu>
188. Which tag is used to define a row in a table?
a) <th>
b) <td>
c) <tr>
d) <table>
189. Which HTML attribute specifies that an input field must be filled out?
a) validate
b) required
c) mandatory
d) needed
190. Which tag is used to display a short quotation?
a) <quote>
b) <blockquote>
c) <q>
d) <quotation>
191. Which HTML element is used for playing video files?
a) <media>
b) <movie>
c) <video>
d) <play>
192. Which HTML tag is used to create a numbered list item?
a) <li>
b) <ol>
c) <ul>
d) <list>
193. Which HTML element defines the header of a document or section?
a) <top>
b) <header>
c) <head>
d) <heading>
194. Which attribute is used to merge table cells horizontally?
a) rowsapn
b) colspan
c) merge
d) span
195. Which attribute is used to merge table cells vertically?
a) rowsapn
b) colspan
c) merge
d) align
196. Which tag is used to define a list description in HTML?
a) <dl>
b) <ol>
c) <ul>
d) <li>
197. Which HTML tag is used for inserting comments?
a) //comment
b) /*comment*/
c) <!--comment-->
d) #comment
198. Which HTML element is used to highlight text?
a) <mark>
b) <highlight>
c) <strong>
d) <focus>
199. Which HTML tag is used to display superscript text?
a) <super>
b) <sup>
c) <top>
d) <script>
200. Which HTML tag is used to display subscript text?
a) <sub>
b) <small>
c) <bottom>
d) <under>
201. Which tag is used to define a section in HTML5?
a) <group>
b) <section>
c) <div>
d) <part>
202. Which HTML element is used to display progress of a task?
a) <meter>
b) <progress>
c) <loading>
d) <status>
203. Which HTML tag is used to define keyboard input?
a) <input>
b) <keyboard>
c) <kbd>
d) <key>
204. Which HTML tag is used to define deleted text?
a) <remove>
b) <del>
c) <delete>
d) <cut>
205. Which tag is used to define inserted text?
a) <insert>
b) <ins>
c) <add>
d) <new>
206. Which attribute specifies an inline CSS style?
a) font
b) class
c) style
d) css
207. Which HTML tag is used to define a footer for a document?
a) <bottom>
b) <footer>
c) <end>
d) <last>
208. Which HTML element is used to define navigation links?
a) <navigate>
b) <navigation>
c) <nav>
d) <menu>
209. Which tag is used to define an article in HTML5?
a) <article>
b) <post>
c) <content>
d) <story>
210. Which HTML tag is used to create a clickable image link?
a) <img href="">
b) <a><img></a>
c) <link image="">
d) <picture link="">
211. Which HTML tag is used to define an abbreviation?
a) <abbr>
b) <short>
c) <acronym>
d) <small>
212. Which tag is used to define a keyboard shortcut?
a) <kbd>
b) <key>
c) <shortcut>
d) <input>
213. Which HTML tag is used to display sample output?
a) <output>
b) <samp>
c) <code>
d) <result>
214. Which HTML tag is used to define a variable?
a) <var>
b) <variable>
c) <v>
d) <code>
215. Which tag is used to display computer code?
a) <program>
b) <code>
c) <computer>
d) <script>
216. Which HTML tag is used to define the base URL for all relative URLs?
a) <url>
b) <base>
c) <link>
d) <meta>
217. Which HTML element is used to embed external content?
a) <embed>
b) <insert>
c) <plugin>
d) <object>
218. Which tag is used to embed PDF files in HTML?
a) <embed>
b) <pdf>
c) <document>
d) <file>
219. Which input type is used to select a color?
a) pallete
b) color
c) rgb
d) paint
220. Which input type is used to select a month?
a) month
b) calendar
c) date
d) yearmonth
221. Which input type is used to select a week?
a) calendar
b) week
c) weekday
d) schedule
222. Which input type is used to select time?
a) timer
b) clock
c) time
d) datetime
223. Which input type is used to select both date and time?
a) datetime-local
b) datetime
c) calendar
d) localtime
224. Which input type is used to enter a number?
a) numeric
b) digit
c) number
d) integer
225. Which input type creates a slider?
a) slider
b) scroll
c) range
d) level
226. Which input type hides the input field?
a) secret
b) hidden
c) invisible
d) private
227. Which HTML attribute specifies placeholder text?
a) secret
b) placeholder
c) invisible
d) private
228. Which attribute specifies the default value of an input?
a) default
b) value
c) initial
d) text
229. Which attribute disables an input field?
a) readonly
b) disabled
c) inactive
d) stop
230. Which attribute makes an input field read-only?
a) readonly
b) disabled
c) fixed
d) lock
231. Which attribute allows multiple file selection?
a) files
b) multiple
c) many
d) select all
232. Which HTML attribute specifies the maximum value?
a) highest
b) max
c) maximum
d) top
233. Which HTML attribute specifies the minimum value?
a) highest
b) min
c) maximum
d) top
234. Which HTML tag is used to group related options in a dropdown?
a) <group>
b) <optiongroup>
c) <optgoup>
d) <options>
235. Which tag defines an option in a dropdown list?
a) <choice>
b) <option>
c) <item>
d) <select>
236. Which HTML tag is used to create a datalist?
a) <datalist>
b) <list>
c) <data>
d) <dataset>
237. Which attribute connects an input with a datalist?
a) data
b) list
c) connect
d) option
238. Which HTML element is used for client-side image maps?
a) <map>
b) <imagemap>
c) <area>
d) <location>
239. Which tag defines a clickable area inside an image map?
a) <click>
b) <shape>
c) <area>
d) <maparea>
240. Which HTML attribute specifies the shape of an image map area?
a) form
b) shape
c) type
d) style
241. Which HTML tag is used to define navigation?
a) <nav>
b) <menu>
c) <navigate>
d) <links>
242. Which HTML5 element represents independent content?
a) <article>
b) <section>
c) <div>
d) <content>
243. Which HTML5 element represents a thematic grouping?
a) <section>
b) <article>
c) <main>
d) <body>
244. Which HTML5 element represents the dominant content?
a) <content>
b) <main>
c) <section>
d) <article>
245. Which tag defines complementary content?
a) <sidebar>
b) <aside>
c) <extra>
d) <support>
246. Which HTML tag defines highlighted text?
a) <mark>
b) <highlight>
c) <strong>
d) <focus>
247. Which HTML tag defines small text?
a) <tiny>
b) <small>
c) <mini>
d) <little>
248. Which HTML tag represents deleted text?
a) <remove>
b) <del>
c) <delete>
d) <cut>
249. Which HTML tag represents inserted text?
a) <insert>
b) <ins>
c) <add>
d) <new>
250. Which tag is used for superscript text?
a) <super>
b) <sup>
c) <top>
d) <up>
251. Which tag is used for subscript text?
a) <sup>
b) <sub>
c) <top>
d) <up>
252. Which HTML tag defines a citation?
a) <quote>
b) <cite>
c) <reference>
d) <author>
253. Which HTML tag is used for a long quotation?
a) <quote>
b) <blockquote>
c) <q>
d) <longquote>
254. Which HTML tag defines a line break opportunity?
a) <break>
b) <wbr>
c) <br>
d) <space>
255. Which HTML tag creates a thematic break?
a) <line>
b) <hr>
c) <break>
d) <separator>
256. Which HTML attribute specifies inline CSS?
a) css
b) class
c) style
d) design
257. Which HTML tag is used to define metadata?
a) <meta>
b) <info>
c) <data>
d) <head>
258. Which tag is used to link an external CSS file?
a) <style>
b) <css>
c) <link>
d) <script>
259. Which HTML tag is used to include JavaScript?
a) <js>
b) <JavaScript>
c) <script>
d) <code>
260. Which attribute specifies the language of the document?
a) language
b) lang
c) locale
d) code
261. Which HTML attribute specifies a unique element identifier?
a) class
b) id
c) name
d) key
262. Which attribute is used to assign one or more CSS classes?
a) css
b) class
c) style
d) group
263. Which HTML element is used to create a button?
a) <btn>
b) <button>
c) <click>
d) <push>
264. Which input type submits a form?
a) submit
b) send
c) upload
d) finish
265. Which input type resets all form fields?
a) refresh
b) clear
c) reset
d) restart
266. Which input type creates a clickable button?
a) click
b) button
c) push
d) submit
267. Which HTML attribute specifies where to send form data?
a) href
b) action
c) target
d) method
268. Which form method sends data in the URL?
a) post
b) get
c) send
d) url
269. Which form method sends data securely in the request body?
a) post
b) get
c) link
d) url
270. Which HTML version introduced semantic elements like <header>, <footer>, and <article>?
a) HTMl 3.2
b) HTML 4.01
c) XHTMLk
d) HTML5
271. Which HTML tag is used to define emphasized text?
a) <strong>
b) <em>
c) <italic>
d) <i>
272. Which HTML tag is used to define important text?
a) <important>
b) <b>
c) <strong>
d) <bold>
273. Which HTML tag is used to make text bold without adding importance?
a) <strong>
b) <b>
c) <bold>
d) <mark>
274. Which HTML tag is used to italicize text without emphasizing it?
a) <italic>
b) <em>
c) <i>
d) <it>
275. Which HTML tag is used to define a definition list?
a) <dl>
b) <ol>
c) <ul>
d) <list>
276. Which tag is used to define a term in a definition list?
a) <dd>
b) <dt>
c) <li>
d) <term>
277. Which tag is used to define the description of a term?
a) <dt>
b) <dd>
c) <desc>
d) <description>
278. Which HTML tag is used to group inline elements?
a) <div>
b) <span>
c) <section>
d) <group>
279. Which HTML tag is commonly used to group block-level elements?
a) <span>
b) <div>
c) <group>
d) <container>
280. Which HTML attribute specifies an element's CSS class?
a) id
b) class
c) style
d) name
281. Which HTML attribute specifies a unique identifier for an element?
a) class
b) id
c) name
d) value
282. Which HTML attribute specifies inline CSS?
a) css
b) class
c) style
d) design
283. Which HTML element contains all visible webpage content?
a) <head>
b) <html>
c) <body>
d) <main>
284. Which HTML tag defines the title displayed in the browser tab?
a) <head>
b) <meta>
c) <title>
d) <caption>
285. Which HTML tag contains metadata about the document?
a) <body>
b) <head>
c) <footer>
d) <section>
286. Which HTML tag is used to display a favicon?
a) <icon>
b) <link>
c) <favicon>
d) <img>
287. Which attribute specifies the destination URL of a hyperlink?
a) <src>
b) <href>
c) <target>
d) <action>
288. Which attribute specifies where to open the linked document?
a) <location>
b) <open>
c) <target>
d) <href>
289. Which value of the target attribute opens a link in the same tab?
a) _blank
b) _parent
c) _self
d) _top
290. Which value of the target attribute opens a link in a new browser tab or window?
a) _self
b) _parent
c) _top
d) _blank
291. Which HTML attribute provides alternative text for an image?
a) title
b) src
c) alt
d) href
292. Which HTML attribute specifies the path of an image?
a) src
b) href
c) alt
d) path
293. Which HTML tag is used to define the document's main heading?
a) <h6>
b) <h3>
c) <h1>
d) <heading>
294. Which HTML heading tag represents the smallest heading?
a) <h1>
b) <h5>
c) <h6>
d) <small>
295. Which HTML tag is used to create a multiline text input?
a) <input>
b) <textbox>
c) <textarea>
d) <text>
296. Which HTML tag is used to create a dropdown list?
a) <dropdown>
b) <option>
c) <select>
d) <menu>
297. Which HTML tag is used to define an option inside a dropdown list?
a) <item>
b) <choice>
c) <option>
d) <select>
298. Which HTML attribute specifies that an input field cannot be left empty?
a) readonly
b) disabled
c) required
d) validate
299. Which HTML tag is used to create a horizontal rule?
a) <line>
b) <hr>
c) <br>
d) <rule>
300. HTML is primarily used for:
a) Database management
b) creating the structure of web pages
c) server side programming
d) operating system developement