HTML5 and JavaScript Quiz Questions
HTML5 and JavaScript Quiz Questions
● <!doctype html5>
●
● <!doctype html>
2. Select the element in which you would include the navigation links
primary of a site:
● <section>
● <menu>
● <header>
● <nav>
3. Which of the following uses of the <script> element do you find the most
appropriate?
● <script src="[Link]"></script>
● <script src="[Link]" />
● <script type="text/javascript" src="[Link]"></script>
● <meter>
● <hgroup>
● <progress>
●
● HTML5 Shim
● Google Detector
● Selectivizr
● Modernizr
● type="boolean"
● type="textarea"
● type="alphanumeric"
● type="range"
7. If you had to create a search field, what would be the most appropriate?
● content
● placeholder
● source
● value
●
● <section>
●
10. For an input to have focus as soon as the document finishes loading,
Which of the following solutions would you apply?
11. What change could be considered the most important for the element
<a> in HTML5?
12. What is the content within the <canvas> tag used for?
Intermediate Level
● controls
● autoplay
● loop
● download
2. Using the API for the video element, which of the following events
we must "listen" to create a custom timer for a video
(e.g.: 10:22)?
● timelistener
● time update
● time counter
● videomove
5. Select the correct way to obtain the value stored in the key
"exam" through localStorage:
● [Link]("exam")
● [Link]("exam")
● [Link]("exam")
6. Using the Canvas API, how would you save a generated canvas?
programmatically to a png file?
● [Link]("image/png")
● [Link]("png")
● [Link]('image/png')
7. It is possible to manipulate an image through the canvas element and convert it,
for example to black and white. Is this also possible for a video?
● Yes
● No
8. Select the invalid attribute for an input:
● required
● autofocus
● pattern
● source
● It is used to associate a list of options with an input (which uses the 'list' attribute with the id of the datalist).
● It is used to associate a list of options with a select (which uses the "list" attribute with the id of the datalist).
The double equals operator (==): compares 2 values BUT it does so without checking the type of the values.
variables. Instead, the triple equal operator (===) checks the content of the variable and
also, check that the two variables are of the same type.