Fiverr HTML5 Test Answers Top 10%
Fiverr HTML5 Test Answers:-
Q:-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>
Answer: – I use MAC Microsoft!
Q:-Which
of the following is the correct syntax to define a charset in the HTML 5
<meta> element?
Answer: – <meta charset=”ISO-8859-1″>
Q:-Which
of the following is NOT a supported attribute of the <ol> element in HTML
5.0?
Answer: – compact
Q:-Which
of the following is a valid attribute for the <colgroup> element in an
HTML 5.0 document?
Answer: – span
Q:-Which
<body> tag event is fired when the user leaves the document?
Answer: – onunload
Q:-A
computer programming book has to go online. Which of the following tags is
ideal for displaying the program snippets?
Answer: – <code>
Q:-What
is the role of the element in HTML 5.0?
Answer: – It is used to define a definition
term
Q:-Which
of the following statements is correct if you allow the user to select only one
radio button from a group of radio buttons?
Answer: – The name of the input tag must be
the same for all the radio buttons.
Q:-Which
of the following video file formats are currently supported by the
<video> element of HTML 5.0?
Answer: – MPEG4, Ogg.
Q:-Which
of the following attributes comes in handy when borders have to be put between
groups of columns instead of every column?
Answer: – colgroup.
Q:-How
will you return a reference to the parent of the current window or subframe in
an HTML 5.0 web application?
Answer: – window.parent
Q:-Which
form event is fired on the click of a button using a button tag with its type
attributevalue equal to submit?
Answer: – Onsubmit
Q:-How
does a button created by the tag differ from the one created by an tag?
Answer: – An input tag button can include
images as well.
Q:-Which
of the following HTML5 elements is used to embed Java applets into your HTML
5.0 web page?
Answer: – <object>
Q:-Which
of the following is NOT a valid attribute for the element in HTML 5.0?
Answer: – http-equiv
Q:-What
is the default background color for the canvas element in HTML 5.0?
Answer: – Black
Q:-Which
of the following is an INVALID value for the type attribute of command tag?
Answer: – text
Q:-In HTML 5.0, what is the function of the sandbox attribute
when used with <iframe> as shown below?
<iframe src=”aaa ” sandbox=?></iframe>
Answer: – a) It is used to define the restrictions to the frame content.
Q:-What is the function of the history traversal task source in
HTML 5.0?
Answer: – c) It is used to queue calls to history.back() and similar APIs.
Q:-How will you cancel
the timeouts that are set with the setInterval() API method identified by the
handlers in HTML 5.0?
ans: window.clearInterval
(handle)
Q:-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>
Answer: – a) First Attempt!
Q:-When does the
ondragleave mouse event get fired in HTML 5.0?
Answer: – a) It gets fired when an element has been dragged to a valid drop target.
Q:-How does a button
created by the <button> tag differ from the one created by an
<input> tag?
Answer: – c) An input tag button can include images as well.
Q:-What does the icon
attribute of the HTML 5.0 command tag define?
<command icon=”?”>Click Me!</command>
Answer: – a) It is used to define the URL of an image to display as the command.
Q:-Which of the
following is correct with regard to the oncanplaythrough event fired by media
resources in the HTML 5.0 document?
Answer: – b) The script will run when the media is played to the end, without
stopping for buffering.
Q:-Which of the
following HTML 5.0 elements is used to embed Java applets into your HTML 5.0
web page?
Answer: – b) <object>
Q:-What is the default background
color for the canvas element in HTML 5.0?
Answer: – a) Black
Q:-This question is
based upon the figure shown below
How will you bind the datalist option (shown below) with an <input>
element, whose type attribute is set to url, to get the result shown in the
image?
Answer: – c) User should define a list attribute to the input element whose type is
url.
Q:-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>
Answer: – b) The script will be executed when the page has finished parsing.
Q:-Which HTML 5.0
element will you use to group the related options in a drop-down list?
Answer: – a) optgroup
Q:-Which of the
following tags would assist in creating named groups within a select list?
Answer: – c) optgroup
Q:-Which of the
following statements is correct for a blockquote?
Answer: – b) It defines a section that is quoted from the another source
Q:-What will be the
return value when using the window.navigator.appName API method in an HTML 5.0
web application?
Answer: – d) It will return the name of the browser.
Q:-Which of the
following statements are correct with regard to <hr> and <br>
elements of HTML 5.0?
Answer: – b) <hr> element is used to insert the horizontal line within your
document and <br> element is used to insert a single line break.
Q:-Which of the
following is NOT an attribute of the <meta> element in HTML 5.0?
Answer: – c) http-equiv
Q:-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?
Answer: – a) Only the Yahoo link will open in a new window.
Q:-In HTML 5.0, which
of the following attributes of the <object> element refers to the
location of the object’s data?
Answer: – c) data
Q:-Which <body>
tag event is fired when the user leaves the document?
Answer: – a) onunload
Q:-Which of the
following are valid mouse events in HTML 5.0?
Answer: – all
Which of the following
is NOT a valid value for the type attribute of the <input> element in
HTML 5.0?
Answer: – f) All of the above are the valid values for <input> element
Q:-Which event is fired
when an element loses its focus in HTML 5.0 document?
Answer: – c) onblur
Q:-Which of the
following is NOT a valid value for the <iframe> sandbox attribute in HTML
5.0?
Answer: – a) url
Q:-What is the purpose
of the <q> element in HTML 5.0?
Answer: – c) It is used to define the start of a short quotation
Q:-Which of the
following is an INVALID value for the type attribute of command tag?
Answer: – d) text
0 Comments