Olete.in
Articles
Mock Tests
🧪 HTML5 MCQ Quiz Hub
HTML Mcq Question 2021
Choose a topic to test your knowledge and improve your HTML5 skills
1. HTML stands for -
HighText Machine Language
HyperText and links Markup Language
HyperText Markup Language
None of these
2. The correct sequence of HTML tags for starting a webpage is -
Head, Title, HTML, body
HTML, Body, Title, Head
HTML, Head, Title, Body
HTML, Head, Title, Body
3. Which of the following element is responsible for making the text bold in HTML?
<pre>
<a>
<b>
<br>
4. Which of the following tag is used for inserting the largest heading in HTML?
<h3>
<h1>
<h5>
<h6>
5. Which of the following tag is used to insert a line-break in HTML?
<br>
<a>
<pre>
<b>
6. How to create an unordered list (a list with the list items in bullets) in HTML?
<ul>
<ol>
<li>
<i>
7. How to create a hyperlink in HTML?
<a href = "www.javatpoint.com"> javaTpoint.com </a>
<a url = "www.javatpoint.com" javaTpoint.com /a>
<a link = "www.javatpoint.com"> javaTpoint.com </a>
<a> www.javatpoint.com <javaTpoint.com /a>
8. How to create an ordered list (a list with the list items in numbers) in HTML?
<ul>
<ol>
<li>
<i>
9. Which of the following element is responsible for making the text italic in HTML?
<i>
<italic>
<it>
<pre>
10. How to insert an image in HTML?
<img href = "jtp.png" />
<img url = "jtp.png" />
<img link = "jtp.png" />
<img src = "jtp.png" />
11. How to add a background color in HTML?
<marquee bg color: "red">
<marquee bg-color = "red">
<marquee bgcolor = "red">
<marquee color = "red">
12. <input> is -
a format tag.
an empty tag.
All of the above
None of the above
13. Which of the following tag is used to make the underlined text?
&lt;i&gt;
&lt;ul&gt;
&lt;u&gt;
&lt;pre&gt;
14. How to create a checkbox in HTML?
&lt;input type = &quot;checkbox&quot;&gt;
&lt;input type = &quot;button&quot;&gt;
&lt;checkbox&gt;
&lt;input type = &quot;check&quot;&gt;
15. Which of the following tag is used to define options in a drop-down selection list?
&lt;select&gt;
&lt;list&gt;
&lt;dropdown&gt;
&lt;option&gt;
16. HTML tags are enclosed in-
# and #
{ and }
! and ?
&lt; and &gt;
17. Which of the following tag is used to add rows in the table?
&lt;td&gt; and &lt;/td&gt;
&lt;th&gt; and &lt;/th&gt;
&lt;tr&gt; and &lt;/tr&gt;
None of the above
18. The <hr> tag in HTML is used for -
new line
vertical ruler
new paragraph
horizontal ruler
19. Which of the following attribute is used to provide a unique name to an element?
class
id
type
None of the above
20. Which of the following HTML tag is used to display the text with scrolling effect?
&lt;marquee&gt;
&lt;scroll&gt;
&lt;div&gt;
None of the above
21. Which of the following HTML tag is the special formatting tag?
&lt;p&gt;
&lt;b&gt;
&lt;pre&gt;
None of the above
22. Which of the following is the correct way to send mail in HTML?
&lt;a href = &quot;mailto: xy@y&quot;&gt;
&lt;a href = &quot;xy@y&quot;&gt;
&lt;mail xy@y&lt;/mail&gt;
None of the above
23. Which of the following is the container for <tr>, <th>, and <td> ?
&lt;data&gt;
&lt;table&gt;
&lt;group&gt;
All of the above
24. How to insert a background image in HTML?
&lt;body background = &quot;img.png&quot;&gt;
&lt;img background = &quot;img.png&quot;&gt;
&lt;bg-image = &quot;img.png&quot;&gt;
None of the above
25. What are the types of unordered or bulleted list in HTML?
disc, square, triangle
polygon, triangle, circle
disc, circle, square
All of the above
26. Which of the following is the correct way to create a list using the lowercase letters?
&lt;ol alpha = &quot;a&quot; &gt;
&lt;ol type = &quot;a&quot;&gt;
&lt;ol letter = &quot;a&quot;&gt;
None of the above
27. Which of the following is the correct way to start an ordered list with the count of numeric value 4?
&lt;ol type = &quot;1&quot; initial = &quot;4&quot;&gt;
&lt;ol type = &quot;1&quot; begin = &quot;4&quot;&gt;
&lt;ol type = &quot;1&quot; num = &quot;4&quot;&gt;
&lt;ol type = &quot;1&quot; start = &quot;4&quot;&gt;
28. Which of the following HTML attribute is used to define inline styles?
style
type
class
None of the above
29. Which of the following is the paragraph tag in HTML?
&lt;p&gt;
&lt;b&gt;
&lt;pre&gt;
None of the above
30. An HTML program is saved by using the ____ extension.
.ht
.html
.hml
None of the above
31. A program in HTML can be rendered and read by -
Web browser
Server
Interpreter
None of the above
32. The tags in HTML are -
case-sensitive
in upper case
not case sensitive
in lowercase
33. Which of the following is the root tag of the HTML document?
&lt;body&gt;
&lt;head&gt;
&lt;title&gt;
&lt;html&gt;
34. In HTML5, which of the following tag is used to initialize the document type?
&lt;Doctype HTML&gt;
&lt;Doctype html&gt;
&lt;Doctype&gt;
&lt;!DOCTYPE html&gt;
35. Which of the following tag is used to create a combo box (or drop-down box)?
&lt;list&gt;
&lt;select&gt;
&lt;input type = &quot;dropdown&quot;&gt;
&lt;ul&gt;
36. Which of the following are the attributes of the tag?
method
action
Both (a) &amp; (b)
None of the above
37. Which is the correct way to comment out something in HTML?
Using ## and #
Using &lt;!-- and --&gt;
Using &lt;/-- and -/-&gt;
Using &lt;!-- and -!&gt;
38. Which HTML tag is used to display the power in expression, i.e., (x2 - y2)?
&lt;sup&gt;
&lt;sub&gt;
&lt;p&gt;
None of the above
39. Which of the following is the correct way to change the font face in HTML?
&lt;font name = &quot;Calibri&quot;&gt; ……… &lt;/font&gt;
&lt;font face = &quot;Calibri&quot;&gt; ……… &lt;/font&gt;
&lt;font = &quot;Calibri&quot;&gt; ……… &lt;/font&gt;
None of the above
Submit