HTML & CSS Basics Exam

HTML & CSS Basics Exam

Test your knowledge of web fundamentals!

Part 1: Multiple Choice

1. What is the correct tag for the largest heading?

2. Which tag is used to create a paragraph?

3. What is the correct way to create a link?

4. Which tag is used to display an image?

5. Which attribute provides alternative text for an image if it cannot be displayed?

6. Which tags are used to create an unordered (bulleted) list?

7. How do you add a comment in an HTML file that the browser will ignore?

8. Which tag contains all the visible content of a webpage?

9. What is the purpose of the <title> tag?

10. How do you add an inline CSS style to change an element's color to red?

Part 2: Fill in the Blank

tag.
.
tag.
attribute to point to the image file.
tag.

Part 3: Open Questions

Part 4: Exercises