← Back to Subject
Web Designing • MCQ • Introduction to HTML
Most Important 30 Objective Question - Introduction to HTML
Q1. HTML stands for:

A) Hyper Text Markup Language
B) High Text Machine Language
C) Hyper Tool Markup Language
D) Hyper Transfer Markup Language

Answer: A

Explanation:
HTML stands for Hyper Text Markup Language. It is used to create the structure of web pages.

Q2. HTML is used for:

A) Database management
B) Web page structure
C) Operating system
D) Network security

Answer: B

Explanation:
HTML is used to create and organize the content and structure of web pages.

Q3. Which tag is used to create the largest heading?

A)

B)
C)


D)

Answer: C

Explanation:

is the largest heading tag in HTML, while

is the smallest.

Q4. Which tag is used to create a paragraph?

A)
B)


C)
D)

Answer: B

Explanation:
The

tag is used to define a paragraph in HTML.

Q5. Which tag is used to insert a line break?

A)
B)
C)

D)

Answer: C

Explanation:

is used to insert a line break without starting a new paragraph.

Q6. Which tag is used to create a hyperlink?

A)
B)
C)
D)

Answer: B

Explanation:
The
tag (anchor tag) is used to create hyperlinks in HTML.

Q7. The attribute used with
tag is:

A) src
B) href
C) alt
D) type

Answer: B

Explanation:
The href attribute specifies the destination URL of the hyperlink.

Q8. Which tag is used to insert an image?

A)
B)
C)
D)

Answer: B

Explanation:
The tag is used to display images on a webpage.

Q9. The attribute used with tag is:

A) href
B) src
C) link
D) file

Answer: B

Explanation:
The src attribute specifies the path of the image file.

Q10. Which tag is used for an unordered list?

A)


    B)

      C)

    • D)

      Answer: B

      Explanation:
        is used for unordered (bulleted) lists.

        Q11. Which tag is used for an ordered list?

        A)

          B)

        • C)

            D)

            Answer: C

            Explanation:
              creates an ordered (numbered) list.

              Q12. Which tag is used for list items?

              A)

            1. B)
              C)
              D)

              Answer: A

              Explanation:
            2. defines an individual item inside ordered or unordered lists.

              Q13. Which tag is used to create a table?

              A)
              B)
              C)
              D)


              Answer: B

              Explanation:
              The tag is used to create a table structure.

              Q14. Which tag is used for a table row?

              A)
              D)

              Answer: C

              Explanation:
              stands for table row.

              Q15. Which tag is used for table data?

              A)
              C)
              B)

              B)

              C)

              B)

              D)

              Answer: A

              Explanation:
              is used for normal table cell data.

              Q16. Which tag is used for table heading?

              A)

              C)
              D)

              Answer: B

              Explanation:
              is used for table heading cells.

              Q17. Which tag contains metadata?

              A)
              B)
              C)
              D) <br /> <br /> Answer: C<br /> <br /> Explanation:<br /> The <head> section contains metadata like title, links, and meta tags.<br /> <br /> Q18. Which tag defines the title of webpage?<br /> <br /> A) <title><br /> B) <head><br /> C) <meta><br /> D) <caption><br /> <br /> Answer: A<br /> <br /> Explanation:<br /> The <title> tag sets the webpage title shown in the browser tab.<br /> <br /> Q19. Which section displays visible content?<br /> <br /> A) <head><br /> B) <body><br /> C) <title><br /> D) <html><br /> <br /> Answer: B<br /> <br /> Explanation:<br /> The <body> contains all visible content of the webpage.<br /> <br /> Q20. Which tag is used for horizontal line?<br /> <br /> A) <line><br /> B) <hr><br /> C) <hline><br /> D) <border><br /> <br /> Answer: B<br /> <br /> Explanation:<br /> <hr> inserts a horizontal line across the page.<br /> <br /> Q21. HTML comments are written as:<br /> <br /> A) // comment<br /> B) <!-- comment --><br /> C) /* comment */<br /> D) ## comment<br /> <br /> Answer: B<br /> <br /> Explanation:<br /> HTML comments are written using <!-- -->.<br /> <br /> Q22. Which tag is used for division/grouping?<br /> <br /> A) <group><br /> B) <section><br /> C) <div><br /> D) <block><br /> <br /> Answer: C<br /> <br /> Explanation:<br /> <div> is used to group HTML elements together.<br /> <br /> Q23. Which tag is used for inline grouping?<br /> <br /> A) <inline><br /> B) <span><br /> C) <div><br /> D) <group><br /> <br /> Answer: B<br /> <br /> Explanation:<br /> <span> is used for inline grouping of text or elements.<br /> <br /> Q24. Character entities are used for:<br /> <br /> A) Adding CSS<br /> B) Displaying reserved symbols<br /> C) Creating forms<br /> D) Creating tables<br /> <br /> Answer: B<br /> <br /> Explanation:<br /> Character entities help display special characters like <, >, &.<br /> <br /> Q25. Example of character entity for less than sign is:<br /> <br /> A) <<br /> B) ><br /> C) &<br /> D) ©<br /> <br /> Answer: A<br /> <br /> Explanation:<br /> < is used to display the less-than symbol <.<br /> <br /> Q26. URL encoding is used for:<br /> <br /> A) Styling webpage<br /> B) Converting special characters in URL<br /> C) Creating forms<br /> D) Creating images<br /> <br /> Answer: B<br /> <br /> Explanation:<br /> URL encoding converts spaces and special characters into valid URL format.<br /> <br /> Q27. Which tag creates frames in old HTML?<br /> <br /> A) <frame><br /> B) <frameset><br /> C) Both A and B<br /> D) <iframe> only<br /> <br /> Answer: C<br /> <br /> Explanation:<br /> Older HTML used both <frame> and <frameset> for frames.<br /> <br /> Q28. Which tag is used in modern HTML for embedding another page?<br /> <br /> A) <frame><br /> B) <frameset><br /> C) <iframe><br /> D) <embed><br /> <br /> Answer: C<br /> <br /> Explanation:<br /> <iframe> is used to embed another webpage inside a webpage.<br /> <br /> Q29. HTML is:<br /> <br /> A) Case sensitive<br /> B) Not case sensitive<br /> C) Only uppercase<br /> D) Only lowercase<br /> <br /> Answer: B<br /> <br /> Explanation:<br /> HTML is generally not case-sensitive, though lowercase is recommended.<br /> <br /> Q30. Root tag of HTML document is:<br /> <br /> A) <body><br /> B) <head><br /> C) <html><br /> D) <title><br /> <br /> Answer: C<br /> <br /> Explanation:<br /> <html> is the root element of every HTML document. </div> <!-- AdSense Placement --> <div class="ad-box"> Google AdSense Ad Placement Here 📢 </div> <!-- Related Questions --> <div class="related-section"> <div class="related-title"> Related Questions 🔥 </div> <a href="question_details.php?id=31" class="related-link"> Most Important 30 Objective Question - Advanced JavaScript </a> <a href="question_details.php?id=30" class="related-link"> Most Important 30 Objective Question - JavaScript Basics </a> <a href="question_details.php?id=29" class="related-link"> Introduction to CSS (Styling and Layouts) </a> <a href="question_details.php?id=28" class="related-link"> HTML Forms and Multimedia Integration </a> <a href="question_details.php?id=26" class="related-link"> Most Important 30 Objective Question - Fundamentals of Internet and Web Technologies </a> </div> </div> </div> </body> </html>