HTML5 Questions How many can you answer

Basic Concepts & Definitions

  1. What does HTML stand for?
  2. Which of the following is NOT a semantic element in HTML5?
  3. What is the purpose of the lang attribute in an HTML5 document?
  4. What does the viewport meta tag do in HTML5?

HTML5 Elements & Tags

  1. Which HTML5 element is used to specify a footer for a document or section?
  2. Which HTML5 element is used for drawing graphics, typically via JavaScript?
  3. Which element is used in HTML5 to specify navigation links?
  4. Which HTML5 element is used to play audio files?
  5. Which HTML5 element is used for marking up a thematic break in a page?
  6. Which HTML5 element is used for specifying a group of introductory or navigational aids?
  7. Which HTML5 element defines independent, self-contained content?
  8. Which HTML5 element is used to define a section of a document that links to other parts of the document or to other documents?
  9. Which HTML5 element represents a list of commands?
  10. Which HTML5 element is used to define a container for an external application or interactive content (a plug-in)?
  11. Which HTML5 element is used to define a header for a document or section?
  12. Which HTML5 element is used for content that is tangentially related to the content around it, like a sidebar?
  13. Which HTML5 element represents a list of items where the order of the items is not important?
  14. Which HTML5 element is used to define a section in a document, such as chapters, headers, footers, or any other sections of the document?
  15. In HTML5, which element is used to represent a container for introductory content or a set of navigational links?
  16. Which HTML5 element is used to specify independent self-contained content?
  17. Which HTML5 element defines a group of media content, and is typically used with the <audio> or <video> elements?
  18. Which HTML5 element is used to define a block of text that has been quoted from another source?

HTML5 Form Elements & Attributes

  1. Which of the following is NOT a valid type for <input> in HTML5?
  2. What is the purpose of the datalist element in HTML5?
  3. What does the pattern attribute in an HTML5 input field do?
  4. What does the placeholder attribute provide in an input field?
  5. What is the purpose of the maxlength attribute in an <input> element in HTML5?
  6. In HTML5, what does the form attribute of the <button> element specify?
  7. What is the function of the placeholder attribute in HTML5 input elements?
  8. What is the purpose of the formaction attribute in an <input type="submit"> element in HTML5?
  9. In HTML5, what does the nowrap attribute in a <td> element do?

HTML5 Media & Graphics

  1. What is the correct HTML5 element for playing video files?
  2. What is the purpose of the <canvas> element in HTML5?
  3. What does the autoplay attribute do in a <video> or <audio> element in HTML5?
  4. What is the purpose of the preload attribute in a <video> or <audio> element in HTML5?
  5. What is the main function of the <figcaption> element in HTML5?
  6. Which HTML5 element is used for specifying a standard way to embed a video in a webpage?
  7. In HTML5, which element is used to define a container for vector graphics?
  8. Which HTML5 element is best used for marking up a scalar measurement within a known range, like a disk usage?
  9. What does the controls attribute do in a <video> or <audio> element in HTML5?
  10. What is the purpose of the autoplay attribute in HTML5 media elements like <video> and <audio>?
  11. What does the srcset attribute in the <img> element do?

Advanced HTML5 Features

  1. What does the async attribute in a <script> tag do?
  2. What is the purpose of the output element in HTML5?
  3. What is the purpose of the article element in HTML5?
  4. Which attribute is used to specify that an input field must be filled out before submitting the form?
  5. Which HTML5 attribute specifies whether the content of an element should be editable or not?
  6. What does the figure element in HTML5 represent?
  7. What is the purpose of the defer attribute in a <script> tag in HTML5?
  8. In HTML5, which attribute of the <track> element specifies the kind of text track?
  9. In HTML5, which attribute of the <textarea> element specifies the visible width of the text control?
  10. What is the role of the alt attribute for images in HTML5?
  11. What does the download attribute in the <a> tag in HTML5 do?
  12. In HTML5, what is the purpose of the <figcaption> element?
  13. What is the default value of the type attribute for a <button> element in HTML5?
  14. In HTML5, which element is used for displaying the result of a calculation?
  15. Which attribute in HTML5 specifies the character encoding for the HTML document?
  16. Which HTML5 element defines a caption for a figure element?
  17. How is a new article element indicated in HTML5?
  18. Which HTML5 element is used for specifying metadata about an HTML document?
  19. Which element in HTML5 is used to represent a control for generating a public-private key pair?
  20. Which attribute in the <a> tag specifies the URL of the page the link goes to?
  21. Which HTML5 element is best suited for marking up a time-stamp?
  22. What is the purpose of the autofocus attribute in HTML5?
  23. Which HTML5 tag is used to specify an ordered list?
  24. In HTML5, which element is used to define emphasized text?
  25. Which attribute in HTML5 is used to specify that an input element should be disabled?
  26. Which HTML5 element is used to represent a scalar value within a known range, such as the volume control?
  27. What does the multiple attribute do in an <input> element in HTML5?