HTML MCQ Questions
HTML MCQ Questions are designed to help you test your knowledge and understanding of HTML (Hypertext Markup Language). These multiple-choice questions cover a wide range of topics including HTML tags, elements, attributes, forms, tables, and web page structure. Whether you're a beginner learning the basics or an experienced developer refining your skills, these MCQs provide a great way to assess your expertise. Ideal for exam preparation, interviews, or personal learning, these questions will help solidify your understanding of HTML and web development fundamentals.
Q1. What does HTML stand for?
A. Hyper Trainer Markup Language
B. Hyper Text Markup Language
C. Hyper Tool Multi Language
D. Hyperlinks and Text Markup Language
π View Explanation
Q2. Which HTML tag is used to define the largest heading?
A. <h6>
B. <heading>
C. <h1>
D. <head>
π View Explanation
Q3. Which HTML tag is used to insert a line break?
A. <lb>
B. <br>
C. <break>
D. <line>
π View Explanation
Q4. Which tag is used to display an image in HTML?
A. <img>
B. <image>
C. <src>
D. <pic>
π View Explanation
Q5. Which attribute is used in <img> tag to specify image source?
A. alt
B. src
C. href
D. link
π View Explanation
Q6. Which tag is used to create a hyperlink in HTML?
A. <a>
B. <link>
C. <href>
D. <url>
π View Explanation
Q7. What is the correct HTML tag for inserting a line?
A. <line>
B. <br>
C. <hr>
D. <break>
π View Explanation
Q8. Which attribute provides alternative text for images?
A. src
B. title
C. alt
D. text
π View Explanation
Q9. Which tag is used to define a paragraph in HTML?
A. <para>
B. <pg>
C. <p>
D. <text>
π View Explanation
Q10. Which HTML element is used for bold text?
A. <bold>
B. <strong>
C. <b>
D. <bt>
π View Explanation
Q11. Which tag is used to create a numbered list?
A. <ul>
B. <li>
C. <ol>
D. <list>
π View Explanation
Q12. Which tag is used to create a bulleted list?
A. <ol>
B. <list>
C. <ul>
D. <bullet>
π View Explanation
Q13. Which HTML element is used to play video files?
A. <media>
B. <movie>
C. <video>
D. <play>
π View Explanation
Q14. Which HTML element is used to play audio files?
A. <sound>
B. <music>
C. <audio>
D. <play>
π View Explanation
Q15. Which HTML attribute is used to open a link in new tab?
A. window
B. tab
C. target="_blank"
D. new
π View Explanation
Q16. Which element is used to insert an inline style in HTML?
A. <style>
B. <css>
C. <span>
D. <script>
π View Explanation
Q17. Which HTML tag is used to display tabular data?
A. <table>
B. <tab>
C. <data>
D. <grid>
π View Explanation
Q18. Which element is used for the title of an HTML document?
A. <heading>
B. <title>
C. <head>
D. <meta>
π View Explanation
Q20. Which doctype is correct for HTML5?
A. <!DOCTYPE HTML5>
B. <!DOCTYPE HTML>
C. <DOCTYPE html>
D. <HTML5 DOCTYPE>
π View Explanation