HTML Tag Quiz (Multiple Choice)
1. What is the purpose of the <!DOCTYPE html> declaration?
A) To define the page title
B) To apply CSS rules
C) To declare the HTML version used
D) To load external files
2. Which tag contains metadata about the HTML document?
A) <meta>
B) <body>
C) <head>
D) <footer>
3. Which element defines the main content that is visible on a web page?
A) <html>
B) <head>
C) <title>
D) <body>
4. Which tag creates the largest heading in HTML?
A) <h6>
B) <head>
C) <h1>
D) <heading>
5. What does the <em> tag represent?
A) Emphasis (italicized and meaningful)
B) Bold text
C) A paragraph
D) Deleted content
6. Which tag is used to insert an image into a webpage?
A) <a>
B) <img>
C) <src>
D) <picture>
7. What attribute is required in an <img> tag to specify the image path?
A) alt
B) href
C) src
D) type
8. Which element is used to define a hyperlink?
A) <link>
B) <a>
C) <ref>
D) <src>
9. Which tag is used for creating an unordered list?
A) <ol>
B) <dl>
C) <ul>
D) <list>
10. What tag defines a table row?
A) <td>
B) <tr>
C) <th>
D) <table>
11. Which tag is used to collect user input in a text box?
A) <textarea>
B) <input type="text">
C) <form>
D) All of the above
12. What is the purpose of the <label> tag in a form?
A) To style form elements
B) To display images
C) To associate text with a form input
D) To submit the form
13. Which tag is used to include external JavaScript code?
A) <js>
B) <script>
C) <link>
D) <style>
14. What does the <nav> element represent?
A) A heading section
B) Navigation links
C) Footer section
D) Image gallery
15. Which of the following tags is self-closing?
A) <p>
B) <div>
C) <img>
D) <section>
Answer Key
1. C
2. C
3. D
4. C
5. A
6. B
7. C
8. B
9. C
10. B
11. D
12. C
13. B
14. B
15. C