HTML Quiz

1. What does HTML stand for?





Answer: Hyper Text Markup Language

2. Which software is commonly used to write HTML code?





Answer: Notepad

3. What is the correct HTML element for inserting a line break?





Answer: <br>

4. Which HTML element represents the largest heading?





Answer: <h1>

5. What is the correct syntax for adding an attribute in HTML?





Answer: <tag attribute="value">

6. How do you make text bold in HTML?





Answer: <strong>

7. Which tag is used to insert a paragraph in HTML?





Answer: <p>

8. How can you create an unordered list in HTML?





Answer: <ul>

9. Which HTML element is used to define important text?





Answer: <strong>

10. What is the correct syntax for inserting a comment in HTML?





Answer: <!-- Comment -->

11. How do you create a hyperlink in HTML?





Answer: <a href="url">Link</a>

12. How do you add a favicon to an HTML document?





Answer: <link rel="icon" href="favicon.ico">

13. Which tag is used to define a table header?





Answer: <th>

14. What is the correct way to define an id in HTML?





Answer: <div id='example'>

15. Which HTML element is commonly used to define the main navigation links?





Answer: <nav>

16. Which meta tag is essential for responsive web design?





Answer: <meta name="viewport" content="width=device-width, initial-scale=1.0">

17. Which HTML tag is used to define emphasized text with semantic meaning?





Answer: <em>

18. Which attribute is used to specify where to send the form data when submitted?





Answer: action

19. What is the correct way to create a single-line text input field in a form?





Answer: <input type="text">

20. How do you define a submit button in an HTML form?





Answer: <button type="submit">Submit</button>