HTML Basics Quiz
Question 1: What does HTML stand for?
Answer: HyperText Markup Language
Question 2: How do you create a hyperlink in HTML?
Answer: Using the <a> element. Example: <a href="https://www.example.com">Visit Example</a>
Question 3: Purpose of <head> element?
Answer: Contains meta-info like title, charset, stylesheets.
Question 4: How to create an ordered list in HTML?
Answer: Using <ol> element. Example: <ol><li>Item 1</li><li>Item 2</li></ol>
Question 5: What does <img> element do?
Answer: Embeds an image. Example: <img src="image.jpg" alt="Description">
Question 6: How to add comments in HTML?
Answer: Using <!-- comment --> syntax. Not displayed on webpage.
Question 7: Purpose of <div> element?
Answer: Container for grouping elements, used for styling with CSS.
Question 8: How to create a line break in HTML?
Answer: Using <br> element. Example: Hello<br>World