HTML Basic MCQs (Long Quiz)

This is the quiz about basics of HTML. Students and new learner's can test their knowledge.

Jun 9, 2021 - 22:32
Jul 23, 2021 - 21:43
 1  199

1. HTML stands for -

High Text Machine Language
Hyper Text and links Markup Language
Hyper Text 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, Body, Title
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. Which character is used to represent the closing of a tag in HTML?

\
!
/
.

8. How to create a hyperlink in HTML?

<a href = "www.javatpoint.com"> javaTpoint.com </a>
<a url = "www.javatpoint.com">
<a link = "www.javatpoint.com"> javaTpoint.com </a>
<a> www.javatpoint.com <javaTpoint>

9. How to create an ordered list (a list with the list items in numbers) in HTML?

<ul>
<ol>
<li>
<i>

10. Which of the following element is responsible for making the text italic in HTML?

<i>
<italic>
<it>
<pre>

11. How to insert an image in HTML?

<img href = "jtp.png">
<img url = "jtp.png">
<img link = "jtp.png">
<img src = "jtp.png">

12. How to add a background color in HTML?

<marquee>
<marquee bg-color = "red">
<marquee bgcolor = "red">
<marquee color = "red">

13. &lt;input&gt; is -

a format tag.
an empty tag.
All of the above
None of the above

14. Which of the following tag is used to make the underlined text?

<i>
<ul>
<u>
<pre>

15. How to create a checkbox in HTML?

&lt;input type = "checkbox"&gt;
&lt;input type = "button"&gt;
<checkbox>
&lt;input type = "check"&gt;

16. Which of the following tag is used to define options in a drop-down selection list?

&lt;select&gt;
<list>
<dropdown>
<option>

17. HTML tags are enclosed in-

# and #
{ and }
! and ?
< and>

18. Which of the following tag is used to add rows in the table?

<td> and </td>
<th> and </th>
<tr> and </tr>
None of the above

19. The <hr> tag in HTML is used for -

new line
vertical ruler
new paragraph
horizontal ruler

20. Which of the following attribute is used to provide a unique name to an element?

class
id
type
None of the above

21. Which of the following HTML tag is used to display the text with scrolling effect?

<marquee>
<scroll>
<div>
None of the above

22. Which of the following HTML tag is the special formatting tag?

<p>
<b>
<pre>
None of the above

23. Which of the following is the correct way to send mail in HTML?

<a href = "mailto: xy@y">
<a href = "xy@y">
<mail>
None of the above

24. Which of the following is the container for <tr>, <th>, and <td> ?

<data>
<table>
<group>
All of the above

25. How to insert a background image in HTML?

&lt;body background = "img.png"&gt;
<img background = "img.png">
<bg image = "img.png">
None of the above

26. What are the types of unordered or bulleted list in HTML?

disc, square, triangle
polygon, triangle, circle
disc, circle, square
All of the above

27. Which of the following is the correct way to create a list using the lowercase letters?

<ol alpha = "a">
<ol type = "a">
<ol letter = "a">
None of the above

28. Which of the following is the correct way to start an ordered list with the count of numeric value 4?

<ol type = "1" initial = "4">
<ol type = "1" begin = "4">
<ol type = "1" num = "4">
<ol type = "1" start = "4">

29. Which of the following HTML attribute is used to define inline styles?

style
type
class
None of the above

30. Which of the following is the paragraph tag in HTML?

<p>
<b>
<pre>
None of the above

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow