Header Ads

W3Schools HTML5 Quiz Answers



1. What is the previous version of HTML, prior to HTML5?
Ans: HTML 4.01 
Correct Answer! 






2. Which doctype is correct for HTML5?
Ans: <!DOCTYPE html>
Correct Answer! 




 

3. Which HTML5 element is used to specify a footer for a document or section?
Ans: <footer>
Correct Answer! 






4. Which of the following elements is no longer supported in HTML5?
Ans: <font>


 Correct Answer!


  

5. Which of the following elements is no longer supported in HTML5?
Ans: <acronym>


 Correct Answer!


  

6. In HTML5, onblur and onfocus are:
Ans:Event attributes


 Correct Answer!


  

7. What is the correct HTML5 element for playing video files?
Ans: <video>


 Correct Answer!


  

8. What is the correct HTML5 element for playing audio files?
Ans: <audio>


 Correct Answer!


  

9. Which attribute for <script> elements is no longer required in HTML5?
Ans: type


 Correct Answer!


  

10. In HTML5, which method is used to get the current location of a user?
Ans: getCurrentPosition()


 Correct Answer!


  

11. The new HTML5 global attribute, "contenteditable" is used to:
Ans: Specify whether the content of an element should be editable or not


 Correct Answer!


  

12. In HTML5, contextmenu and spellcheck are:
Ans: HTML attributes


 Correct Answer!


  

13. In HTML5, you can embed SVG elements directly into an HTML page.
Ans: True


 Correct Answer!


  

14. Graphics defined by SVG is in which format?
Ans: XML


 Correct Answer!


  

15. The <canvas> element in HTML5 is used to:
Ans: draw graphics


 Correct Answer!


  

16. Which built-in HTML5 object is used to draw on the canvas?
Ans: getContext


 Correct Answer!


  

17. In HTML5, which attribute is used to specify that an input field must be filled out?
Ans: required


 Correct Answer!


  

18. Which input type defines a slider control?
Ans: range


 Correct Answer!


  

19. Which input type defines a week and year control (no time zone)?
Ans: week


 Correct Answer!


  

20. Which HTML5 element is used to display a scalar measurement within a known range?
Ans: <meter>


 Correct Answer!

No comments

Disqus Shortname

Comments system

Powered by Blogger.