Quizzes › HTML

HTML Quiz

Test your knowledge of HTML elements, attributes and document structure. The quiz mixes multiple-choice questions with short written answers, and your score is shown as soon as you submit.

100 questions · about 20 minutes · no sign-up required

1. What does HTML stand for?

2. Which element defines the largest heading?

3. Which tag creates a line break inside a paragraph?

4. Which tag creates a hyperlink to another page?

5. Which tag embeds an image in the page?

6. Which attribute holds the destination of a link?

7. Which element should contain the page's visible content?

8. Which tag defines a data cell in a table?

9. Which tag creates a bulleted list?

10. Which tag embeds an audio player?

11. How do you write a comment in HTML?

12. Which input type hides characters as they are typed?

13. Which attribute gives an image its alternative text?

14. Which tag defines a paragraph?

15. Which tag marks the main content of the document?

16. Which element describes a list where the order matters?

17. Which doctype declares a modern HTML document?

18. Which input type creates a single-choice radio button?

19. Which tag embeds another page inside the current one?

20. Which attribute declares the human language of a page?

21. Which element defines one row in a table?

22. Which element groups the header cells of a table?

23. Which tag wraps a single item in a list?

24. Which tag marks text with emphasis?

25. Which tag preserves spaces and line breaks exactly as written?

26. Which element embeds a video in the page?

27. Which attribute value makes a link open in a new tab?

28. Which tag creates a form?

29. Which tag creates a multi-line text field?

30. Which tag creates a drop-down list of choices?

31. Which element draws a thematic break between sections?

32. Which element marks a block of navigation links?

33. Which tag defines one choice inside a drop-down list?

34. Which tag attaches an external stylesheet to the page?

35. Which tag holds CSS written directly in the document?

36. Which input type creates a checkbox?

37. Which element supplies the caption for a figure?

38. Which tag holds JavaScript code?

39. Which tag sets the title shown in the browser tab?

40. Which tag defines a level-two heading?

41. Which attribute declares the character encoding of a document?

42. Which element wraps a description list?

43. Which tag defines the smallest heading?

44. Which tag defines the footer of a page or section?

45. Which tag represents a scalar measurement within a known range?

46. Which element marks text as strongly important?

47. Which element marks a long, block-level quotation?

48. Which tag provides a drawing surface for scripts?

49. Which tag groups a figure with its caption?

50. Which tag defines a term in a description list?

51. Which element gives a table its caption?

52. Which attribute links a label to the input it describes?

53. Which tag creates a generic block-level container?

54. Which tag marks text that has been inserted into a document?

55. Which tag marks subscript text?

56. Which element contains metadata about the document?

57. Which attribute makes a form field mandatory?

58. Which attribute gives the address of an image file?

59. Which attribute shows a tooltip when an element is hovered?

60. Which attribute stops a form field from being edited?

61. Which attribute gives a form control the key it submits under?

62. Which element groups related form controls with a caption?

63. Which input type creates a field for an email address?

64. Which input type creates a slider for choosing a number in a range?

65. Which input type opens a colour picker?

66. Which is the correct way to write the boolean disabled attribute?

67. Which element creates a clickable button?

68. Which HTTP method places form data in the URL?

69. Which form attribute names the HTTP method to use?

70. Which tag groups the body rows of a table?

71. Which element represents a self-contained article?

72. Which element represents a thematic grouping of content, usually with its own heading?

73. Which tag creates a table?

74. Which tag defines a group of columns in a table?

75. Which tag defines a single column inside a column group?

76. Which element represents a sidebar that is only loosely related to the page?

77. Which element shows how much of a task has completed?

78. Which attribute on a header cell tells assistive technology which cells it covers?

79. Which tag provides content when scripting is unavailable?

80. Which tag provides the visible label for a details widget?

81. Which element represents a dialog box or other interactive popup?

82. Which element embeds an SVG graphic in the document?

83. Which tag is the root element of an HTML document?

84. Which tag represents the introductory content at the top of a page or section?

85. Which tag highlights text as relevant to the reader?

86. Which element offers alternative media resources for <video> or <audio>?

87. Which element holds the description in a description list?

88. Which tag marks a short inline quotation?

89. Which tag represents text entered with a keyboard?

90. Which tag represents a variable in a mathematical expression?

91. Which element is a generic inline container?

92. Which element marks text that has been deleted from a document?

93. Which tag marks an abbreviation together with its expanded form?

94. Which tag marks a fragment of computer code?

95. Which tag groups related options inside a drop-down list?

96. Which element marks superscript text?

97. Which attribute sets how wide an image is displayed?

98. Which tag provides the caption for a fieldset?

99. Which tag groups the summary rows at the bottom of a table?

100. Which attribute lists several image candidates for responsive images?

0 of 100 answered