Fiverr

Fiverr HTML5 Test Questions & Answers

Md Niaz Morshed
Jan 28, 2026
48 views
Fiverr HTML5 Test Questions & Answers

How to get started

Below are the Fiverr HTML5 Test Questions with Answers. To locate the answers quickly, you can utilize Ctrl + F on this page. Here's a guide on how to prepare before starting the test:

  1. Access Fiverr through the Chrome Browser on your Smartphone and log in.
  2. Have your desktop or laptop available. If you encounter difficulties solving any questions, using a desktop or laptop will make finding the answers much simpler compared to using a smartphone.
  3. Ensure you have both a laptop and smartphone ready before proceeding.

Fiverr HTML5 Test Questions and Answers

Note: Correct answers are highlighted in Green.

1. Which media event is triggered when there is an error in fetching media data in HTML 5.0?

  • a. onstalled
  • b. onwaiting
  • c. onsuspend
  • d. oninvalid

2. Which of the following video file formats are currently supported by the <video> element of HTML 5.0?

  • a. CCTV
  • b. MPEG 4
  • c. Ogg
  • d. 3GPP

3. Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?

  • a. url
  • b. allow-scripts
  • c. allow-same-origin
  • d. allow-forms

4. Which of the following is an INVALID value for the type attribute of the command tag?

  • a. checkbox
  • b. radio
  • c. command
  • d. text

5. What is the function of the history traversal task source in HTML 5.0?

  • a. It is used for features that react to user interaction, for example, keyboard or mouse input.
  • b. It is used for features that react to DOM manipulations.
  • c. It is used to queue calls to history.back() and similar APIs.
  • d. All of the above.

6. What will be the result if you use the following code to your HTML 5.0 document?

<p>I use <del>MAC</del> <ins>Microsoft</ins>!</p>
  • The correct answer is: I use MAC Microsoft! (Strikethrough MAC, Underline Microsoft)

7. You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster’s email address is [email protected]?

8. In HTML 5.0, how will the script be executed if you use the script element shown below?

<script src="script.js" type="text/javascript" defer="defer"></script>
  • a. The script is fetched and executed immediately.
  • b. The script will be executed when the page has finished parsing.
  • c. The script will be executed asynchronously, as soon as it is available.

9. What is the output when you use the HTML 5.0 code snippet shown below?

<body>
  • a. It will alert saying "[object HTMLBodyElement]"
  • b. It will alert saying "[object Window]" when the document is loaded.
  • c. It will alert saying "[this]"
  • d. An error will be generated.

10. A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?

  • a. <emp>
  • b. <code>
  • c. <dfn>
  • d. <cite>

11. Which of the following are valid HTML 5.0 elements? (Check All)

  • a. <canvas>
  • b. <summary>
  • c. <aside>
  • d. <video>

12. How does a button created by the <button> tag differ from the one created by an <input> tag?

  • a. An input tag button can be a reset button too.
  • b. A button tag button can be a reset button too.
  • c. An input tag button can include images as well.
  • d. A button tag can include images as well.

13. Which of the following is NOT a valid value for the type attribute of the <input> element in HTML 5.0?

  • a. url
  • b. week
  • c. tel
  • d. radio
  • e. datetime-local
  • f. All of the above are valid values for element

14. Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?

  • a. col
  • b. colgroup
  • c. rowspan
  • d. row

15. Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?

  • a. The script will run when the media has reached the end.
  • b. The script will run when the media is played to the end, without stopping for buffering.
  • c. The script will run when media data is loaded.
  • d. The script will run when the length of the media is changed.

16. While rendering your HTML 5.0 web page, which of the following <link> element files will get skipped by a compliant user agent?

<link rel="stylesheet" href="A" type="text/plain"> <link rel="stylesheet" href="B" type="text/css">
  • a. A link element whose href is "B"
  • b. A link element whose href is "A"
  • c. None of the above

17. Which <body> tag event is fired when the user leaves the document?

  • a. onunload
  • b. onundo
  • c. onredo
  • d. onerror

18. How will you change the value of the cookies and items in the Storage objects of the localStorage attributes in HTML 5.0?

  • a. By invoking the window.dialogArguments() API method.
  • b. By invoking the window.navigator.yieldForStorageUpdates() API method.
  • c. By invoking the window.navigator.appName API method.

19. What is the role of the <dfn> element in HTML 5.0?

  • a. It is used to define important text.
  • b. It is used to define computer code text.
  • c. It is used to define sample computer code.
  • d. It is used to define a definition term.

20. Which of the following is NOT a valid syntax for the <h1> element in HTML 5.0?

  • a. <h1> This is header 1</h1>
  • b. <h1 align="center"> This is header 1</h1>
  • c. <h1sc1')">This is header </h1>
  • d. <h1 style="cursor:auto;">This is header </h1>

21. Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?

  • a. onload
  • b. onsubmit
  • c. onunload
  • d. onreset

22. How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application?

  • a. window.top
  • b. window.parent
  • c. window.frameElement
  • d. None of the above

23. In HTML 5.0, which of the following is NOT a valid value for the type attribute when used with the <command> tag?

<command type="?">Click Me!</command>
  • a. button
  • b. command
  • c. checkbox
  • d. radio

24. What is the default background color for the canvas element in HTML 5.0?

  • a. Black
  • b. White
  • c. Transparent
  • d. Gray

25. Which of the following are valid mouse events in HTML 5.0? (Check ALL)

  • a. ondblclick
  • b. ondragstart
  • c. ondragenter
  • d. onscroll
  • e. ondrop

26. Which of the following languages will you use to paint the graphics designed using the HTML 5.0 <canvas> tag?

  • a. VB script
  • b. JavaScript
  • c. PostScript
  • d. None of the above

27. When is the window onstorage event triggered in the HTML document?

  • a. It is triggered when the window is resized.
  • b. It is triggered when a document loads.
  • c. It is triggered when a document performs an undo function.
  • d. It is triggered when the window becomes visible.

28. Which of the following is NOT a valid attribute for the <video> element in HTML 5.0?

  • a. controls
  • b. autoplay
  • c. disabled
  • d. preload

29. Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?

  • a. <input name ='be evil' />
  • b. <input name=be evil />
  • c. <input name = "be-evil" />
  • d. All of the above.

30. Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?

  • a. hreflang
  • b. rel
  • c. http-equiv
  • d. media

31. Which of the following statements is correct if you allow the user to select only one radio button from a group of radio buttons?

  • a. The name of the input tag must be the same for all the radio buttons.
  • b. The value of the input tag must be the same for all the radio buttons.
  • c. The display text of the input tag must be the same for all the radio buttons.
  • d. All the radio buttons must be added to the same group using the <optgroup> tag.

32. Which of the following is an INVALID keyword value for http-equiv attribute when used with the <meta> element in HTML 5.0?

  • a. content-type
  • b. expires
  • c. set-cookie
  • d. keywords
  • e. refresh
  • f. author

33. Which of the following <iframe> attributes are NOT supported in HTML 5.0?

  • a. height
  • b. marginheight
  • c. sandbox
  • d. scrolling
  • Note: None of the above (Technically marginheight/scrolling are obsolete but supported).

34. Which of the following is an INVALID parameter for the window.navigator.registerContentHandler API method?

  • a. url
  • b. mimeType
  • c. scheme
  • d. title

35. In HTML 5.0, what is the function of the sandbox attribute when used with <iframe>?

<iframe src="aaa " sandbox=?></iframe>
  • a. It is used to define the restrictions to the frame content.
  • b. It is used to define the URL of the document that should appear in the iframe.
  • c. It is used to specify that an iframe should appear as if it is part of the document.

36. Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?

  • a. type
  • b. reversed
  • c. start
  • d. compact

37. What is the function of onobsolete, an application cache API method in HTML 5.0?

  • a. It reflows the HTML document using updated cached content.
  • b. It triggers an event when the cache content has been marked as obsolete.
  • c. It triggers an event when the cache content has been updated.
  • d. It updates the cache for the current document in the background.

38. Which of the following HTML 5.0 elements is used to embed Java applets into your HTML 5.0 web page?

  • a. <applet>
  • b. <object>
  • c. <source>
  • d. <progress>

39. Which media event will be fired when a media resource element suddenly becomes empty?

  • a. onerror
  • b. onended
  • c. onloadeddata
  • d. onemptied

40. What is the purpose of the <var> element in HTML 5.0?

  • a. It is used to define a keyboard text.
  • b. It is used to generate a public-private key pair.
  • c. It is used to define a definition term.
  • d. It is used to define a variable.

41. Which event is fired when an element loses its focus in HTML 5.0 document?

  • a. onfocus
  • b. onload
  • c. onblur
  • d. onselect

42. A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?

  • a. td
  • b. p
  • c. ls
  • d. pre

43. Which HTML 5.0 element will you use to group the related options in a drop-down list?

  • a. optgroup
  • b. option
  • c. menu
  • d. var
  • e. nav

44. How will you cancel the timeouts that are set with the setInterval() API method identified by the handlers in HTML 5.0?

  • a. window.clearInterval (handle)
  • b. window.clearTimeout (handle)
  • c. window.setInterval (code, timeout)
  • d. window.setTimeout (code, timeout)

45. Which event is fired when the history of the browser window changes?

  • a. onpopstate
  • b. onstorage
  • c. onresize
  • d. onhashchange

46. What is the purpose of the <dt> element in HTML 5.0?

  • a. It is used to define the start of a term in a definition list.
  • b. It is used to define attribute values for one or more columns.
  • c. It is used to define the start of a short quotation.
  • d. It is used to define what to show browsers that do not support the ruby element.

47. In HTML 5.0, which of the following attributes of the <object> element refers to the location of the object’s data?

  • a. type
  • b. codebase
  • c. data
  • d. usemap

48. Which tag is used to specify a standard character set for a webpage?

  • a. <meta charset="UTF-8">
  • b. <script charset="UTF-8">
  • c. <head charset="UTF-8">
  • d. <html charset="UTF-8">

49. Which HTML5 element is used to specify a footer for a document or section?

  • a. <bottom>
  • b. <section>
  • c. <footer>
  • d. <end>

Fiverr HTML5 Test Conclusion

In conclusion, HTML5 offers a wide array of features and functionalities that empower web developers to create more dynamic, interactive, and engaging websites. Through its semantic elements, improved multimedia support, enhanced form controls, and advanced APIs, HTML5 revolutionizes the web experience.

Comments

No comments yet. Be the first to share your thoughts!

Leave a Comment