All quizzes
Free quiz · 50 questions in the bank

HTML quiz

Test your HTML knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

In an HTML `<table>`, what is the role of `<th>` vs `<td>`?

In this round
  1. In an HTML `<table>`, what is the role of `<th>` vs `<td>`?
  2. What is the purpose of the `alt` attribute on `<img>`?
  3. What does HTML stand for?
  4. Which pair correctly describes the roles of `<head>` and `<body>`?
  5. What attribute on `<a>` defines the destination URL?
  6. What is the practical difference between `class` and `id` attributes?
  7. What is the purpose of `<!DOCTYPE html>` at the top of a page?
  8. Which best describes when to use `<em>` instead of `<i>`?
  9. Which tag includes an external stylesheet in `<head>`?
  10. Which is the proper way to embed an image with a descriptive caption?
  11. What does `<meta charset="utf-8">` do?
  12. Where should `<script>` tags traditionally go, and why?
Gaps to close?
Read the curated HTML notes — core concepts, patterns, interview prep.
HTML notes

More quizzes

.NETAccessibilityAgile MethodologyAirflowAlertmanagerAlgorithms