Fiverr HTML5 Test Answers 2024

  • December 30, 2023
  • Shawon Web
  • 22 min read

Fiverr HTML5 Test Answers

Table of Contents

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. I’ll provide some steps to assist you:

  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.

Ensure you have both a laptop and smartphone ready before proceeding.

Let’s Find out the Fiverr HTML5 Test Questions and answers

Here are the Fiverr HTML5 Test answers provided for your review and preparation before starting. Please be aware that some questions might be unavailable due to ongoing updates by Fiverr, introducing new test questions. Additionally, it’s crucial to note that the accuracy of these answers sourced from various internet sources cannot be guaranteed. Therefore, read and comprehend the content before initiating the test.

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

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

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

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

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

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, for example, the things that happen asynchronously when an element is inserted in the document.
c. It is used to queue calls to history.back() and similar APIs.
d. All of the above.

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!

a. <a href=”mailto:[email protected]”>webmaster</a>
b. <a href=”[email protected]”>webmaster</a>
c. <a http=”mail:[email protected]”>webmaster</a>

d. <mail http=”send:[email protected]”>webmaster</mail>
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, before the user agent continues parsing the page.
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.

What is the output when you use the HTML 5.0 code snippet shown below?
<body onload=”alert(this)”>

a. It will alert saying “[object HTMLBodyElement]” when the document is loaded.
b. It will alert saying “[object Window]” when the document is loaded.
c. It will alert saying “[this]” when the document is loaded.
d. The alert message is not properly defined in the body element and an error will be generated when the document is loaded.

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>
Which of the following are valid HTML 5.0 elements?
a. <canvas>
b. <summary>
c. <aside>

d. <video>

(Check All)

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.

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 the valid values for element

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

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.

<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

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

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

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.

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.

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. <h1 onClick=”dothis(‘sc1′)” >This is header </h1>

d. <h1 style=”cursor:auto;”>This is header </h1>
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

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

In HTML 5.0, which of the following is NOT a valid value for the type attribute when used with the <command> tag shown below?
<command type=”?”>Click Me!</command>

a. button
b. command
c. checkbox
d. radio

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

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

Which of the following are valid mouse events in HTML 5.0?

a. ondblclick
b. ondragstart
c. ondragenter
d. onscroll
e. ondrop
(Check ALL)

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

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.

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

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.

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

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.

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

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

a. height
b. marginheight
c. sandbox
d. scrolling

Note: All the attributes mentioned (height, marginheight, sandbox, scrolling) are supported for the element in HTML 5.0. There’s no explicit lack of support for any of these attributes.</p>

Which of the following is an INVALID parameter for the window.navigator.registerContentHandler API method in an HTML 5.0 web application?

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

Note: In HTML 5.0, all the parameters listed (url, mimeType, scheme, title) are valid parameters for the window.navigator.registerContentHandler API method. None of them are considered invalid parameters in this context.

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

Note: In HTML 5.0, ‘url’ is a valid value for the <iframe> sandbox attribute. Therefore, the correct answer is: None of the options provided (‘url’, ‘allow-scripts’, ‘allow-same-origin’, ‘allow-forms’) are invalid values for the <iframe> sandbox attribute in HTML 5.0.

In HTML 5.0, what is the function of the sandbox attribute when used with <iframe>as shown below?
<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 the iframe is in.

Which of the following is NOT a supported attribute of the element in HTML 5.0?

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

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.

Suppose you add the input code given above to your HTML web page. What result will be returned by the JavaScript function when you click the button marked as A in the image?

a.number
b.text
c.button
d.None of the above

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>
Which of the following is NOT a valid attribute for the element in HTML 5.0?

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

Which of the following is NOT an attribute of the <meta> element in HTML 5.0?

a. charset
b. content
c. http-equiv
d. scheme

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

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

What is the purpose of the element in HTML 5.0?

a. It is used to define a keyboard text in an HTML 5.0 web page.
b. It is used to generate a public-private key pair in an HTML 5.0 web page.
c. It is used to define a definition term in an HTML 5.0 web page.
d. It is used to define a variable in an HTML 5.0 web page.

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

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

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

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

You are writing the code for an HTML form and you want the browser to retain the form’s input values. That is, if a user submits the form and presses the browser’s back button, the fully populated form is displayed instead of a blank form. Which of the following HTML 5.0 attributes will you use?

a. accept
b. autofocus
c. autocomplete
d. formtarget

Which of the following tags would assist in creating named groups within a select list?

a. opt
b. group
c. optgroup
d. selectgroup

In which of the following conditions is a browsing context A allowed to navigate a second browsing context B?

a. When the browsing context A is a nested browsing context and its top-level browsing context is B.
b. When the browsing context B is an auxiliary browsing context and A is allowed to navigate B’s opener browsing context.
c. The origin of the active document of A is the same as the origin of the active document of B.
d. All of the above

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)

Which of the following are valid values for the contenteditable attribute of the <figure> element in HTML 5.0?

a. true
b. false

c. 0
d. 1

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

onpopstate
onstorage
onresize
onhashchange

What is the purpose of the 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 in a table.
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.

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

Which of the following is true about HTML DOM?

i) It is a standard object model for HTML
ii) It is a programming language.
iii) It is a standard programming interface for HTML.
ans: b) i & iii

You want to display a table listing out customer names and their contact information. The heading of the table is shown in the given figure. What is the code for creating the first line of the table heading?
a. <tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
b.<tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>
c.<tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
d.<tr>
<th>Customer Name</th>
<th cellspacing=3>Contact</th>
</tr>

Some More Fiverr HTML5 Test Questions and Answers without Options

Here are some additional questions and answers sourced from the internet. You can find the answers here.

In HTML 5.0, which of the following media events is triggered when fetching of media data is interrupted before it having completely loaded (due to any reason)?

ans: c) onsuspend

Which of the following is the correct syntax to change the text ‘WELCOME!’ to ‘Hello!’?
ans: c) <h1 onclick=”this.innerHTML=’Hello!'”>WELCOME! </h1>
For adding a new child node before a specified child node, which of the following methods is used?

ans: a) insertBefore()

Which of the following is the correct method to load another web page or reload the same page in HTML 5.0?

I have found an answer to internet question and answer which is

a) <head>
<meta http-equiv=refresh content=5>
</head>

But the correct answers are below

<head>
    <meta http-equiv="refresh" content="5">
</head>
In which of the following conditions is a browsing context A allowed to navigate a second browsing context B?

ans: d) All of the above

What will be the output of the following HTML DOM code?
<!DOCTYPE html>
<html><body>
<p id=”begins”>First Attempt! </p>
<script>
var txt=document.getElementById(“begins”).innerHTML;
</script>
</body></html>

ans: a) First Attempt!

When does the ondragleave mouse event get fired in HTML 5.0?

ans: a) It gets fired when an element has been dragged to a valid drop target.

What does the icon attribute of the HTML 5.0 command tag define?
<command icon=”?”>Click Me!</command>

a. It is used to define the URL of an image to display as the command.
b. It is used to define the name of the radiogroup this command belongs to.
c. It is used to define if the command is checked or not.
d. It is used to define if the command is available or not.

This question is based upon the figure shown below – How will you bind the datalist option (shown below) with an element, whose type attribute is set to url, to get the result shown in the image?

ans: c) User should define a list attribute to the input element whose type is url.

You specified a base tag and anchors as follows:

1. <base target=”_blank”>
2. <a href=”http://www.yahoo.com”>Yahoo</a>

3. <a href=”http://www.google.com” target=”_top”>Google</a>
Which of the following is true of the above code?

ans: a) Only the Yahoo link will open in a new window.

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.

From the robust video and audio capabilities to the versatile form input types, HTML5 opens doors for creating more accessible, responsive, and visually appealing web content. Embracing HTML5’s capabilities not only improves user experiences but also ensures compatibility with modern web standards, making it an indispensable tool for web development in today’s digital landscape.

Get Our Valuable Post For Fiverr and Visit my Fiverr Profile

Leave a Reply

Your email address will not be published. Required fields are marked *