Elance HTML5 Test Answers 2015

What is a <b> tag used for?
To define italic text
To define a push button
To define bold text
To define text with strong importance
To define a (single) break


What HTML5 tag is described as: A section of a page that consists of a composition that forms an independent part of a document, page or site.
<article>
<caption>
<area>
<adress>
<aside>


Which of the following is NOT a valid way to store a value in local storage?
document.localStorage[“key”] = “value”;
localStorage[“key”] = “value”;
window.localStorage.key = “value”;
window.localStorage[“key”] = “value”;


What is the proper syntax for specifying a cache manifest?
<meta type=”manifest” content=”/cache.manifest” />
<link rel=”manifest” type=”cache” href=”/cache.manifest” />
<body manifest=”/cache.manifest”>
<html manifest=”/cache.manifest”>


Using HTML5, what would be the most semantic tag for highlighting a few words inside a <p> element?
<span>
<aside>
<mark>
<highlight>


Which of the following is the ending point of the line in a straight line drawing on a canvas?
startTo(x,y)
drawTo(x,y)
moveTo(x,y)
lineTo(x,y)


What is a Web Worker?
JavaScript script embedded in the page, triggered by the user
JavaScript script running in the background of the page
Hundreds or thousands of these can be allocated in clusters to distribute work amongst common tasks on a web platform
No correct answer


The <strike> element is valid HTML5.
False. It's obsolete.
True. It should be used to cross-out text.


Which of the following is not new element of HTML5?
<nav>
<noscript>
<progress>
<meter>
<rt>


How do you make an element draggable ?
<img drag="allow" />
<img draggable="true" />
<img draggable="allow" />
<img drag="true" />


In HTML5, which method is used to get the current location of a user?
getPosition()
getUserPosition()
getCurrentPosition()


Which of the following in not true about height and width attribute in <video> element in HTML5.
Downsizing a large video with the height and width attributes forces a user to download the original video.
All are correct.
If height and width are not set then page layout may change during loading.
If height and width are not set, the browser does not know the size of the video, and cannot reserve the appropriate space to it.
If height and width are set then space required for the video is reserved when the page is loaded.


The element to specify a list of predefined options for input controls is?
<embed>
<track>
<datalist>
<source>


Which of the following tags is not supported by HTML5?
<img>
<menu>
<map>
<i>
<frame>


The _____ attribute specifies the elements text directionality.
auto
ltr
dir
rtl


What type of tag is not supported by HTML5?
<font>
<legend>
<figcaption>
<form>
<object>


What is the correct tag for independent and self-contained content?
<menu>
<nav>
<aside>
<article>


The action attribute in a <form> element:
tells the browser what to do if an input field is invalid.
none of these.
Specifies a javascript snippet to be executed when the form is submitted.
specifies the URL of the service that will handle the submitted data.


Which of the following video file formats are currently supported by the <video> element of HTML 5.0?
MPEG 4
CCTV
3GPP
Ogg


The element <noframes> is a current element in HTML5.
False
True


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


Which tag would you use in the <HEAD> to set the document character encoding to UTF-8?
<meta type=”charset” content=”utf-8”>
<meta charset="utf-8" />
<link rel=”content-type” content=”utf-8”>
<link rel=”charset” content=”utf-8”>


Which attribute in <video> element is responsible for play/pause button?
controls
It is default of <video> element.
preload
autoplay
poster


Which tag can be used inside the <details> tag?
<summary>
<version>
<command>
<aside>


Which of the following can be a potential section in an application cache manifest file?
cache and network, only
network
All options can be sections
fallback
cache


The <video> element allows:
Multiple <source> elements.
None of these.
Three <source> element.
Single <source> element
Two <source> element.


Blockquote tags are:
no longer valid in HTML5.
used only for XML.
valid HTML5 mark-up
have a limit of 256 characters.


An example of a new HTML5 element would be:
<object>
<strong>
<audio>
<comment>


The <figure> and <figcaption> elements were primarily added to the specification for what purpose?
To deprecate the <img> and <span> tags
To give users the ability to display block level images
To allow developers to incorporate local storage of images
To offer a semantically correct markup for displaying image captions


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


True or False: The element <font> is a current element in HTML5.
True
False


What does the <details> tag do?
Defines a command button that a user can invoke
Defines additional details that the user can view or hide
Defines a section in a document
Represents the progress of a task
Defines additional data from other sites


A placeholder attribute in an input field...
sets default gray helper text for the field.
holds the input field in place.
doesn't exist.
creates even spacing between itself and other input fields.


Which of the following tags is not supported in HTML5?
<iframe>
<fieldset>
<nav>
<frame>
<header>


The browser remembers data from a form and outputs it using:
autofocus
list
autocomplete
form overrides


When using an <input type="email"> field many modern browsers will display a tool-tip warning for easier client-side form validation.
False, form validation is only possible on the server.
False, client-side form validation is only possible with the use of JavaScript.
True, but this should not replace server-side validation.


In HTML5, onblur and onfocus are:
Style attributes
HTML elements
Event attributes


In HTML5, which attribute is used to specify that an input field must be filled out?
required
placeholder
formvalidate
validate


What attribute should you not assign to <img> tags?
width
alt
height
src
align


Which of the below is not a html 5 element
<output>
<frame>
<section>
<header>


Do all web browsers support all HTML5 features equally?
Yes
Yes, except for Google Chrome
Yes, except for Safari
Yes, except for Firefox
No


What is the role of the <dfn> element in HTML5?
It is used to define a definition term.
It is used to define computer code text.
It is used to define sample computer code.
It is used to define important text.


<nav> is an HTML5:
pattern.
attribute.
element.
box type.


How do you make an input tag checked? You add:
check="yes"
input="checked"
checked="checked"
this->check


What is the role of the <dfn> element in HTML 5.0?
It is used to define sample computer code.
It is used to define a definition term
It is used to define computer code text.
It is used to define important text.


HTML5 was partially created by WHATWG and:
XML
XHTML 2.0
W3C
Netscape


Which of these is not a valid HTML5 tag?
article
aside
baseline
audio


The tag to specify illustrations, diagrams, photos is?
<details>
<mark>
<aside>
<figure>


SVG is used to define what?
vector-based graphics for the World
sames vector graphics
vector-based graphics for the Web


The process of giving all elements in a page a margin of 0 and padding of 0 is called a:
reboot
recall
reset
reprocess


What does the <nav> element represent?
a section of a page that links to other pages or to parts within the page.
the HTML5 replacement for the deprecated <a> element.
the base URL specified with the location attribute.
The <nav> element is not part of the HTML5 specification.


What is the standard code to create a table row with "1" in first cell and "2" in second cell?
<table><tr><td>1</td><td>2</td></tr></table>
<table><tr><td>1</td><ld>2</td></tr></table>
<table><tr><td>1</td><td>2</to></tr></table>


When you format images with <img> tags, which attribute do you not use?
Enctype
All of these
Type
Action
Bold


The Geolocation API guarantees that the returned location coordinates will be accurate to within:
18000 feet
No guarantee is given that the API returns the device's actual location.
30 meters
18000 meters
100 feet


Which of the following web browser doesn't support the muted attribute of <video> element?
Google Chrome 6
Opera 10.6
Internet Explorer 9
Firefox 4.0


What is the proper syntax for adding placeholder text to a text input?
<input>Placeholder text</input>
<input placeholder=”Placeholder text” />
<input pre=”Placeholder text” />
<input value=”Placeholder text” />


AppCache, localStorage, and sessionStorage are forms of:
Namespaces
Standards
Web storage
HTML commands


The following link is placed on an HTML webpage. <a href="http://msdn.com/" target="_blank"</a> What do you infer from it?
It will open the site msdn.com in a new window.
It will not be clickable as it is not formed correctly.
It will open the site msdn.com in the same window.
It will open the site msdn.com in a frame below.


To limit the length of input in a form field use:
limit_value
maxlength
medium
value="medium"


Which attribute in <video> element is responsible for start playing as soon as it is ready?
autorun
fastload
autoplay
preload
loop


What is Canvas?
It's a drawable region defined in HTML code with height and width attributes.
It's used to draw graphics, on the fly, via scripting
All of these
It has several methods for drawing paths, boxes, circles, characters, and adding images.
It's a container for graphics


What is the tag used to define attribute values for one or more columns in a table?
<caption>
<col>
<details>
<canvas>


Which tag is considered an HTML5 tag?
<headline>
<header>
<heading>
<headgroup>


The Web workers API allows you to...
all of these
enable background processing of JavaScript to improve performance of your web pages.
remove the bottleneck of JavaScript UI processing by spawing a background thread for more CPU intensive tasks.


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 webmaster@xcompany.com?
<a http="mail:webmaster@xcompany.com">webmaster</a>
<mail http="send:webmaster@xcompany.com">webmaster</mail>
<a href="mailto:webmaster@xcompany.com" >webmaster</a>
<a href="webmaster@xcompany.com">webmaster</a>


Which HTML5 tag would most semantically group a page title (in an H1 tag) and tagline (in an H2 tag)?
<aside>
<section>
<hgroup>
<nav>


Which tag is able to render a graphic image?
<img>
<video>
<embed>
<table>


Which of the next tags is new in HTML5?
<header>
All of them
<nav>
<canvas>
<aside>


What is the minimal way to define the character set with meta tag?
<?xml version="1.0" encoding="utf-8" ?>
<meta http-equiv="Content-Type" content="text/html;charcterset=utf-8" >
<meta charset="UTF-8">
<meta http-equiv="content-type" name="copyright" content="text/html; charset=UTF-8">


What does the <hgroup> tag do?
Defines a date/time
Groups a set of <h1> to <h6> elements when a heading has multiple levels
Defines a header for a document or section
Defines navigation links
Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.


Which of the following are valid element types for input fields?
datetime
range
All of them
datetime-local
Tel


The <canvas> element is new to HTML5 and allows you to...
draw graphics on a web page using Adobe Flash.
draw graphics on a web page using a Java plug-in.
draw graphics on a web page using JavaScript APIs.


Which tag defines a command button that a user can invoke?
id tag command
Figure
<details>
.command
<command>


Integration of what type of content allows you to specify graphics in an xml format?
SVG
BMP
JPEG


SVG graphics do NOT lose any quality if they are zoomed or resized
True
False


HTML is client side execution language.
FALSE
TRUE


Adding height and width to img elements can...
stretch an image.
prevent change in page layout when the image finishes loading.
all of these.


What is the purpose of <svg> tags?
To preformat pictures or text using Cascading Style Sheets
To draw pictures or text using Scalable Vector Graphics
To insert JavaScript content
To structure web pages
<svg> tags are not supported by HTML5


Which is the correct DOCTYPE for HTML5?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
All of these
<!DOCTYPE html>


What does SVG stand for?
Size Vector Graphics
Size Visable Graphics
Size Vested Graphic
Scalable Vector Graphics


What is the use of <kbd>?
Defines Important Text
Defines a Definition Term
Defines a sample output from a computer program
Defines keyboard input
Defines broader container area


The <frame> element is an obsolete element in HTML5.
True
False


True of false: older browsers ignore HTML5 constructs?
True
False


Which of the following are valid mouse events in HTML 5.0?
ondragenter
ondblclick
All are correct
onscroll
ondragstart


13. Which of the following is not true about kind attribute of a <track> element?
chapters: The track defines chapter titles
All
subtitles: The track defines subtitles, used to display subtitles in a video
captions: The track defines translation of dialogue and sound effects
metadata: The track defines content used by scripts.


What does the following code do: <input type="text" name="user_name" autofocus="autofocus" />?
The browser will automatically give the user_name field focus when the page loads.
none of these
Creates a text field on the form being loaded.
Loads a form called text.


What is the correct email input tag?
<input type="text" name="email" />
<input type="text" id="email" />
<input type="email" name="user_email" />
<input type="Email" id="email" />


Which tag is used for describing details about a document?
<section>
<header>
<figure>
<details>


<span> is no longer used in HTML5:
False
True


Which browser does NOT support SSE (Server sent events)
Firefox
Google Chrome
Opera
Internet Explorer
Safari


Which tag would semantically separate a section of photos from a section of videos?
<hgroup>
<article>
<nav>
<section>


The <progress> element is capable of an indeterminate progress.
True
False


<meta charset="utf-8" /> should be placed...
at the very end of the file.
anywhere on the page
right after the opening <head> tag.
at the very beginning of the file.


True or False: <svg> is more suited to draw vector graphics and <canvas> is better with bitmaps.
False
True


What are/is the most important differences between XHTML and HTML?
<html>, <head>, <title>, and <body> is mandatory
The XML namespace attribute in <html> is mandatory
XHTML DOCTYPE is mandatory
Attribute values must be quoted
All of them


Which script is useful in rendering dynamic images in canvas?
<vbscript>
<actionscript>
<html>
<javascript>


True or False: HTML5 Canvas can be used to create images.
True
False


Which of the following is correct?
It is best to style a webpage using the new HTML5 style properties.
If an HTML5 document finds no stylesheet, it becomes invalid.
HTML5 describes the content of a page while CSS defines style rules.


What does the <header> tag define?
Represents the progress of a task
additional details that the user can view or hide
date/time
the head of a css sheet
a header for a document or section


Which HTML5 element should be used to group navigation links?
<nav>
<div>
<section>
<header>


What attributes do you assign to <audio> tags?
Autoplay, preload
All of these
Loop
Controls, src


What Is the correct html 5 doc type declaration ?
<HTML5>
<!DOCTYPE HTML5>
<!DOCTYPE html>
<!DOCTYPE = “HTML5”>


What is the correct HTML5 element for playing audio files?
<mp3>
<audio>
<media>
<sound>


Geolocation is much more accurate for devices with GPS, like iPhone
False
True


Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?
onunload
onreset
onload
onsubmit


What is the purpose of <em> tags?
To define a table caption
To define a body element
To define emphasized text
To define bold text
To define external interactive content


What is the correct HTML5 element for playing video files?
<media>
<video>
<movie>


id stands for:
unspecified integer
unspecified identifier
unique identifier
unbuntu identity


True or False: The <canvas> tag is only a container for graphics, you must use a script to actually draw the graphics.
False
True


HTML5 comments look like this:
'
//
<!-- -->
/* */


Can a <article> contain <section> elements?
False
True


Which of the following are sample use cases for HTML5 web workers?
Polling URLs in background.
Syntax highlighting without blocking code editing capabilities in online IDEs.
All of these.
Motion tracking input in realtime with a video element.


How can audio files be played in HTML5? var sound = new Audio("file.wav");
sound.resume();
sound.start();
sound.begin()
sound.play();


The <canvas> element in HTML5 is used to:
display database records
draw graphics
manipulate data in MySQL
create draggable elements


The <section> tag is allowed to define:
headers
all of these
chapters
footers


Can a <section> contain <article> elements?
False
True


HTML5 form validation will validate all specified field types and...
time-date fields.
url fields.
email fields.
required fields.


The <!DOCTYPE> declaration in HTML5 is?
<!DOCTYPE html;>
<!DOCTYPE html>
<!DOCTYPE html:>
<!DOCTYPE html!>


The meter element are measurements that are part of a scale with minimum and maximum values.
False
True


What is an <i> element most often used for?
To define italic text
To define an input field
To define bold text
To define inserted text
To define a list item


Which of the following should be used for entering urls?
<input type="url" name="user_url" />
<input type="text" id="user_url"/>
<input type="text/url" id="url" />
<input type="text" name="user_url" />


Controls attribute in <video> element doesn't include
Volume
Seeking
It includes all of the option.
Play button
Pause button


The HTML5 Geolocation API is used to get the geographical position of a user. Since this can compromise user privacy, the position is not available unless the user approves
False
True


Which HTML tag should be used to contain each individual post on a page of blog posts?
<aside>
<div>
<article>
<footer>


When do you use an <a> tag?
To define an article
To define a hyperlink
To define an area inside an image map
Not supported by HTML5
To define a section


What does the <mark> tag define?
date/time
user can invoke
marked/highlighted text
navigation links


Which HTML5 element is used to specify a footer for a document or section?
<section>
<bottom>
<footer>


True or False: You can now set an input field as "required" without the use of Javascript.
True
False


What attributes do you assign to <form> tags?
All of these
action=""
id=""
method=""


In HTML5, you can embed SVG elements directly into an HTML page.
True
False


Which of the following languages will you use to paint the graphics designed using the HTML 5.0 <canvas> tag?
VB script
PostScript
None
JavaScript


Which of the following are native date pickers that are defined in HTML5?
week
All of these
month
date


The HTML5 element used to draw graphics via scripting is?
<figcaption>
<canvas>
<header>
<mark>


Which tag is used to display graphics?
<details>
<hgroup>
<section>
<canvas>


<!doctype html> replaces which doctypes?
All of these
Frameset
Transitional
Strict


What is the correct doctype in html 5?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">


HTML5 was created to be:
all of these.
backwards compatible.
semantically correct.
forward thinking.


Click on the element below that is displayed as a list item?
<textarea>
<li>
<mark>
<strong>
<label>


The canvas element is used to:
replace the hexicode
place jpg images
draw images on a web page
place gif images


What is the correct tag for command?
<header>
<nav>
<command>
<article>


Examples of usage for the <article> element are
news item
blog post
all of these


What is required to run the Geolocation API on your device?
A browser which supports HTML5
Nothing, it will work on all devices.


How many <nav> tags can you have in a html5 document?
any number
1
3
2


Can you drag and drop in HTML5?
No
Yes


<button> is a:
invalid HTML5 tag
valid HTML5 tag


<section> tags are used to improve the semantic quality of the document, and better differentiate between sections of the page.
False
True


True or False: You can't put divs in HTML5 footer tags.
True
False


Which of the following are valid HTML 5.0 elements?
<aside>
All are correct
<video>
<summary>
<canvas>


Some of the benefits of HTML5 directly effect...
mid-sized devices such as iPads
all of these
mobile platforms
the internet on TV


Which of the following defines a part of a document, that would still make sense out of the context of its webpage (like a news article)?
<article>
<mark>
<details>
<section>
<rt>


You should insert text content between the <video> and </video> tags for browsers that do not support the <video> element.
False
True


Which is the correct tag used for input fields, that contain a numeric value?
<input type="text/number" name="points" id="text" min="1" max="10" />
<input type="number" name="points" min="1" max="10" />
<input type="text" min="1" max="10" />
<input type="text" name="points" />


video/ogg, video/mp4 and video/webm are all examples of:
webisodes
uStreams
MIME types


Can a web page contain multiple <footer> elements?
False
True


Which of the following is a not content-specific element in HTML5?
<article>
<narrow>
<footer>
<nav>
<header>


JavaScript is a type of:
Program compiler
Scripting language
Markup language
Validator


How many footers can you have in a html 5 document?
20
3
2
any number


The tag used to define navigation links is?
<header>
<nav>
<meter>
<dialog>


The canvas element:
works in conjunction with JavaScript
replaces JavaScript
only works with cold fusion
does not work if the page is written in php


Which <body> tag event is fired when the user leaves the document?
onredo
onerror
onunload
onundo


A button that empties the form for the user to begin again is created with:
<input type="clear"/>
<submit>reset</submit>
<submit for="clear"/>
<input type="reset"/>
<reset/>


What can HTML 5 forms NOT do?
completely replace server side form validation
detect email addresses and phone numbers
validate forms


Which tag specifies the caption inside a figure element?
<command>
<figcaption>
<figure>
<section>


HTML5 offers two new objects which use JavaScript APIs for storing local data. These new objects are...
cookies and locationObjects.
cookies and sessionVariables.
localStorage and sessionStorage.


A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?
<emp>
<code>
<dfn>
<cite>


All of the following are true of HTML5 except:
It is built on an open standard
It requires Windows 8
It can be used to create Web apps and PC and device apps
It is platform-independent


Aside tags are useful for...
secondary content
right side content
left side content
main content


Using HTML5, what would be the most semantic way to group a section of ads?
<header>
<mark>
<nav>
<aside>


Does HTML5 use new tags not supported by HTML4?
Only XML type
No
Only for Internet Explorer
No, but it will
Yes


<applet> tag is not supported by HTML5 Now which tag you can use in place of <applet> ?
<em>
<abbr>
<object>
<address>
<abr>


Sections encapsulate...
divs only
headers but not footers
headers and footers only
any valid mark-up or content


In chrome, setting autofocus in an input field will cause the field to _____ when the user clicks into it.
become hidden
become trackable
disappear
light up


A HTML5 SSE allow a web page to _________
automatically gets updates from a server
define a possible line-break
use the location of a user's position


This tag is now deprecated:
font
frameset
frame
all of these


Which component is not a primary element of the HTML5 family?
HTML
JavaScript
CSS
XML


To make a form submit you can use:
<field for="data-submit"/>
<run>
<form action="submit">
<button type='submit'>
<submit>


Can a web page contain multiple <header> elements?
False
True


What attribute(s) would you add to an <input type=”number” /> to set the maximum and minimum value for that input?
min=”1” max=”10”
minimum=”1” maximum=”10”
range=”1,10”
value=”1” maxvalue=”10”


A media element that allows for dynamic, scriptable rendering of images is:
Bespin Application
SVG
2D API
Canvas


True or False: There can be only 1 <footer> element on any given page.
True
False


Which of the following is not a valid input type of the form tag?
button
checkbox
image
All are valid
hidden


The code for text area is:
<input type="textarea" />
<textarea type="input">words</textarea>
<textarea>words</textarea>


How would an older (non-HTML5) browser handle an <input type=”email” /> element?
Still display it as an email input
Display it as a text input
Display it as a textarea
Not display it at all


Which of the following elements is no longer supported in HTML5?
<ins>
<q>
<font>
<menu>


What is the correct HTML element used for different types of output, like calculations or script output?
<result></result>
<output></output>
<command></command>
<display></display>


<object> defines an:
embedded object
external object
attribute object
content object


Which of the following method is used to draw an image on a canvas?
drawImage(image,x,y)
writeImg(image,x,y)
drawImg(image,x,y)
writeImage(image,x,y)


Search is a valid input type.
False
True


You can force a scroll bar onto a page by using:
an aside tag
a right nav tag
CSS overflow
all of these


Is this correct or not ? <video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> <source src="movie.webm" type="video/webm"> Your browser does not support the video tag. </video>
No, the "controls" attribute can not be set to "controls".
No, the "controls" attribute does not exists.
Yes, it seems correct.
No, you can not use 3 <source> in a single <video> tag.
No, you can't directly add the text "Your browser does not support the video tag." in a <video> tag.


Height of the video player by <video> element depends:
Poster attribute
Size attribute
Height attribute
Size of media source
Width attribute


What attribute makes a radio button or checkbox input selected?
checked="true"
checked="checked"
selected="true"
selected="selected"


To make radio buttons work as a group you give them the same_____.
name
label
fieldset
first element


Minimizing HTML code gets rid of:
unloaded JavaScript
whitespace
unclosed div tags
bugs


The method to draw a rectangle filled with current fill style is
fillRect(x,y,z)
fillRect(x,y,width,height)
fillRect(x,y)
fillRect(width,height)


Which of the following tags is used to define multiple media resources for <video> or <audio>?
<video>
<audio>
<track>
<source>
<embed>


True or false: <u> is deprecated in HTML5.
True
False


Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
col
colgroup
rowspan
row


<video> tags display video the same way in each browser.
False
True


Which of the following is false about autoplay attribute of <video> element?
It is boolean attribute
It is correct to write <video autoplay>
All
Video will automatically start playing.
It value can be "autoplay" or ""


What is Application Cache?
Enables a web application to cache itself and make it readable without an internet connection.
None of these
Enables a web application to copy the server logic to a local server, so it can be run without an internet connection.


The <time> element:
Defines a date/time.
Defines a time only.
none of these.
Defines the document's published date.


Which of the following is NOT a valid attribute for the <video> element in HTML 5.0?
disabled
autoplay
controls
preload


The element <big> is a current element in HTML5.
True
False


What does the icon attribute of the HTML 5.0 command tag define? <command icon="?">Click Me!</command>
It is used to define the url of an image to display as the command.
It is used to define if the command is checked or not.
It is used to define the name of the radiogroup this command belongs to.
It is used to define if the command is available or not.


<video controls="controls" preload="auto"> <source src="song.mp4" type="video/mp4" /> </video> Which of the following is true?
None of these.
It should load the part of video when the page loads.
It should load the entire video when the page loads.
It should not load the video when the page loads.
It should load only metadata when the page loads.


Graphics defined by SVG is in which format?
CSS
XML
HTML


Which attribute for <script> elements is no longer required in HTML5?
rel
href
type
src


Which of the following would give a yellow background to the web page?
<body background="Yellow">
<body color="Yellow">
<body backcolor="Yellow">
<body bgcolor="Yellow">


True of false? The canvas tag is the only one available to draw images.
False
True


What do <video> and <audio> require (for users)?
a modern web browser with good HTML 5 support, no matter the codec
a modern web browser with good HTML 5 support, and at least one codec offered by the video/audio
an HTML 5 media plugin
Adobe Flash


The placeholder attribute:
allows the developer to specify JavaScript that will run to populate the textbox control.
allows the developer to define the text that will appear in a textbox control.
allows the user to define the text that will appear in a textbox control.


Tables are now obsolete in HTML5.
True
False


True or False: Using semantically correct HTML5 tags will cause all browsers to display a page layout the same.
True
False


Auto buffering in HTML5 has been replaced with?
Autobuff
Buff
Autoload
Preload


An input with a type hidden will be ignored by the browser.
False
True


What are the two new objects for storing data on the client in HTML 5?
localStorage and sessionStorage
localStorage and clientStorage
sessionStorage and cookie
clientStorage and cookie


What will happen if you exceed the allotted local storage space for your origin?
The value will still be assigned
A “QUOTA_EXCEEDED_ERR” will be thrown
The user will be prompted to increase local storage space for your origin
The assignment statement will return null


What is the function of the history traversal task source in HTML 5.0?
It is used for features that react to user interaction, for example, keyboard or mouse input.
It is used to queue calls to history.back() and similar APIs.
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.


Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?
<input name =’be evil’ />
<input name=be evil />
<input name = “be-evil" />
All are correct


The onhashchange event only dispatches when
both of these
the entire URL changes.
the hash portion of the current URL changes.
neither of these


The title attribute is used in:
all of these.
<section> tags.
<header> tags.
<div> tags.


Which of the following tags is supported by HTML5?
<acronym>
<xmp>
<tt>
<time>
<frame>


In an input field, a telephone number should have which type?
number
tel
text
telephone


Which attribute in <video> element is responsible for video will start over again, every time it is finished?
loop
None of these.
autostart
replay
autoplay


When combined with the <figcaption> element, we can now semantically associate captions with their image counterparts with what element?
<Relation>
<Counterpart>
<Associate>
<Caption>
<Figure>


Is it possible to use the camera with the javascript html5 api?
Yes, using certain browser configuration and the use of media handling code in JS
Yes, using Flash
Yes, using Canvas
No


What does the meter tag define?
A scalar measurement within a unknown range
None of these answers
A scalar measurement within a known range
Measurement of known and unknown ranges


<video> tags are used for...
flash only
all of these
mp3 files
embedded movies


What is the new Audio Video file format sponsored by Google for use in across all HTML5 supported browsers
.WebM
.MP3
.AVG
.MP4
.FLV


Select tags encapsulate:
output tags
sections
option tags
rollbacks


The element <basefont> is a current element in HTML5
False
True


Which attributes are supported on the canvas element (among others)?
color, width and height
depth, width and height,
id, width and height
None of these is correct


The <frameset> element is part of HTML5.
False
True


What is the function of onobsolete, an application cache API method in HTML 5.0?
It updates the cache for the current document in the background.
It reflows the HTML document using updated cached content.
It triggers an event when the cache content has been updated.
It triggers an event when the cache content has been marked as obsolete.


The <header> element should not be used within which element?
Body
Aside
Section
Footer


Suppose your browser doesn't support <video> tag What will be output of following code? <video width="320" height="240" > Exact Help </video>
Exact Help
Blank page
Work in audio mode
None of these.
Error message


Which tag is used for an introduction of a document or a section?
<hgroup>
<summary>
<footer>
<header>


Which of the following is NOT a benefit offered by using application cache?
Offline browsing: users can navigate a site even when they are offline.
Security: data stored within the cache is protected from external access.
Reduced server load: the browser only downloads resources that have changed from the server.
Speed: cached resources are local, and therefore faster.


<applet> is an element of HTML5?
True
False


Which of the following is a valid attribute in HTML5?
align="left"
bgcolor="white"
data-count="4"
color="blue"


The method used to a circle on a canvas is?
arc(x,y,r,start,stop)
arc(x,y,r,start)
arc(start,stop)
arc(x,y,start,stop)


Which is the correct <canvas> tag declaration?
<canvas id="myCanvas" width="800" height="600" info="Your browser is sooooo old! Download a modern one now!" />
<canvas id="myCanvas" width="800" height="600" src="/src/mycanvas.js> <p>Your browser is sooooo old! Download a modern one now! </p> </canvas>
<canvas id="myCanvas" width="800" height="600" > <p>Your browser is sooooo old! Download a modern one now! </p> </canvas>
<canvas id="myCanvas" > <measure width="800" height="600" /> <p>Your browser is sooooo old! Download a modern one now! </p> </canvas>


In a cache manifest, which header is used to specify a backup URL if the URL is inaccessible?
cache manifest:
fallback:
network:


To increase or decrease the integer value in a number type input field use:
value
decrease
increase
step


What is the internal/wire format of input type="date" in HTML5?
MM-DD-YYYY
DD-MM-YYYY
YYYY-MM-DD


The element <dir> is not a current element in HTML5.
False
True


The built-in HTML5 object to draw lines, circles, text, rectangles etc. is?
getDraw("2d")
setDraw("2d")
getWrite("2d")
getContext("2d")


Which built-in HTML5 object is used to draw on the canvas?
getContent
getGraphics
getContext
getCanvas


What is a valid manifest file extension?
All of these
example.manifest
example.cache
example.appcache
example.mf


Progress bars are supported natively using the...
none of these
<progress> element
<input type="progress"> element
<bar> element


What is the mime type for a manifest file?
text/cache
text/cache-manifest
text/manifest
text/appcache


If there are multiple <source> element inside a <video> element. Browser will display the video of:
Will depend upon the browser support of media source.
Last <source> element.
First <source> element.
Error message: multiple media source.
All <source> element from first to last.


What is the correct way to set the autoplay attribute in HTML5?
<video autoplay="autoplay">
<video autoplay>
<video autoplay="">
All are correct.


Which API allows programs and scripts to update content, structure, and stles on the fly?
RTE
JavaScript
The DOM
WinRT


What is the mehtod to draw filled text on a canvas?
fillText(text,x,y,)
StrokeText(text,x,y,)
drawText(text,x,y,)
fillStroke(text,x,y,)


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


Which of the following is NOT a valid syntax for the <h1> element in HTML 5.0?
<h1 style="cursor:auto;">This is header </h1>
<h1> This is header 1</h1>
<h1 align="center"> This is header 1</h1>
<h1 onClick="dothis(‘sc1′)" >This is header </h1>


Your are developing a Metro style app and want the app to access another app. Where do you declare the interaction?
At the top of the HTML file
CSS
App manifest
Nowhere; you do not have to declare the interaction


Forms have been greatly improved because...
quicker round trips to the server makes the page lighter
more work is being done on the server side
Javascript does all of the validation
more can be handled by the browser


Which method lets you access the canvas to start drawing on it?
setContext();
getContext();
setCanvas() ;
getCanvas();


Which of the following is NOT a valid value for the “type” attribute of an <input> element?
name
number
email
url


Cross document messaging allows two document windows to communicate with each other. Which property do you check to verify the source requesting the message is a trusted source?
origin
event
source


In which order would these cache manifest events be fired?
checking, downloading, progress, cached
checking, progress, downloading, cached
progress, downloading, checking, cached
downloading, checking, progress, cached


The <canvas> element is a:
Resolution-dependent bitmap canvas
Resolution-independent bitmap canvas


Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
The script will run when the media has reached the end.
The script will run when the media is played to the end, without stopping for buffering.
The script will run when media data is loaded.
The script will run when the length of the media is changed.


What would be a valid input for this field: <input type="number" min="0" max="10" step="2" default="6"> ?
1
2
none of these
12


Using HTML5, syntax errors will be treated uniformly by all conforming browsers and other user agents.
True
False


What is the default background color for the canvas element in HTML 5.0?
Transparent
Black
Gray
White


On which object does the browser fire cache manifest events?
window
window.applicationCache
window.localStorage
window.document


Files listed under this header will be cached after they are downloaded.
All of the answers are correct
None of these are correct
FALLBACK -
NETWORK
CACHE MANIFEST


Which attribute in <video> element is responsible for audio output of the video should be muted?
None of these.
sound
controls
muted
voice=0


Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?
rel
hreflang
http-equiv
media


<video controls="controls" preload="metadata"> <source src="song.mp4" type="video/mp4" /> </video> Which of the following is true?
It should not load the video when the page loads.
Error.
It should load the entire video when the page loads.
It should load the part of video when the page loads.
It should load only metadata when the page loads.


Which of the following defines a visible heading for a <details> element?
<figure>
<summary>
<section>
<details>
<progress>


After checking all files in the cache manifest for updates, and finding NO updates, which event will the browser fire?
checking
downloading
noupdate
cached


Which three properties are guaranteed to be provided as part of a geolocation position object?
latitude, longitude, altitude
latitude, longitude, accuracy
altitude, accuracy, altitude_accuracy
accuracy, heading, speed


Click on the element below that does NOT exist in HTML5.
<dl>
<ld>
<dt>
<rp>
<rt>


What MIME-type must a cache manifest be served with?
text/cache-manifest
text/plain
application/cache-manifest
application/xml


In HTML5, contextmenu and spellcheck are:
HTML attributes
Event attributes
HTML elements
Style attributes


What is the <wbr> tag used for?
Looks for the working browser
Represents the progress of a task
Defines a possible line-break
Defines a section in a document
Defines a possible break in code


What is the proper syntax to make a text input autofocus?
<input tabindex=”1”>
<input focus>
<input onload=”autofocus”>
<input autofocus>


Which tag has semantic significance?
<strong>
<i>
!important
<b>
<div>


The <summary> tag must have which tag as its parent?
<menuitem>
<details>
<section>
<article>
<fieldset>


<rt> is used to define:
an article
a command button that a user can invoke
Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
an explanation/pronunciation of characters
a visible heading for a <details> element


The method used to create a circular gradient is?
createRadialGradient(x,y,r,x1,y1,r1)
RadialGradient(x,y,r,x1,y1)
createRadialGradient(x,y,r)
RadialGradient(x,y,x1,y1)


Within a fieldset, you can give a name to a group of input fields with:
<group>
<hgroup>
<legend>
<name>


Which of the following mouse events are used when handling a drag/drop event?
onclick
ondragenter
onmousedown
ondragblur


What does the stroke() method of the canvas context API do?
Assigns a color to the line being drawn and makes it visible on the canvas
Draws a line to the two specified points on the canvas.
Creates a new context point from which the line is drawn on the canvas.


What is the amount of local storage space per origin recommended by the W3C?
5 megabytes
1 megabyte
10 megabytes
500 kilobytes


Which of the next attributes was added to the anchor tag in HTML5?
media
href
rel
type


According to the W3C HTML5 specification, which one of these may the <time> element NOT represent?
A precise date in the proleptic Gregorian calendar
A length of time in milliseconds
A time on a 24-hour clock
A precise date in the proleptic Gregorian calendar, with a time and a time-zone offset


Files listed under this header require a connection to the server, and will never be cached.
Network
Cache Manifest
Fallback


Which of the following is not property of <video> element?
currentTime
abort
duration
videoWidth
currentSrc


When is the popstate event on a window dispatched?
Only when the user browses to another link.
Only when the user clicks on the history buttons.
Everytime the active history entry changes.


Which HTML5 tag would be best for wrapping the date of a blog post?
<time>
<date>
<mark>
<span>


Which of the following is a current element in HTML5?
<big>
<basefont>
<applet>
<acronym>
<output>


Which event will be fired when the user presses the back button?
back
popstate
pushstate
reverse


What is a new attribute for both <form> and <input>?
autocomplete
novalidate
list
placeholder


<rp> is used to:
Define a ruby annotation (for East Asian typography)
Define a scalar measurement within a known range
Define what to show in browsers that do not support ruby annotations
Define a possible line-break
Define a caption for a <figure> element


What is the output when you use the HTML 5.0 code snippet shown below? <body onload="alert(this)">
It will alert saying “[object HTMLBodyElement]" when the document is loaded.
It will alert saying “[this]" when the document is loaded.
The alert message is not properly defined in the body element and an error will be generated when the document is loaded.
It will alert saying “[object Window]" when the document is loaded.


Which of the following element is not related video in HTML5?
<source>
<video>
<play>
<track>


Which of the following element has not removed from HTML5?
<font>
<small>
<strike>
<basefont>
<big>


Which of the elements below is displayed inline by default?
<section>
<aside>
<blockquote>
<pre>
<textarea>


Which is not a valid tag?
<location>
<aside>
<track>
<summary>
<mark>


Which section of a cache manifest file specifies files which should not be cached?
NETWORK
DYNAMIC
FALLBACK
NOCACHE


Which of the following elements is no longer supported in HTML5?
<cite>
<base>
<acronym>
<abbr>


What is the URL of W3C Markup Validation Service?
http://w3c.validator.com
http://validator.w3.com
http://validator.w3c.org
http://validator.w3c.com
http://validator.w3.org


What is the minimum needed to create a HTML5 document?
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> </html>
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <script>// Some scripts</script> <style>// Some styles</style> </head> <body> The content of the document...... </body> </html>
<!DOCTYPE html> <title>Title of the document</title>
<html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>
<!DOCTYPE html> <html> <head> </head> <body> The content of the document...... </body> </html>


Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?
type
reversed
compact
start


Which of the following is not new element of HTML5?
<hgroup>
<mark>
<footer>
<kbd>
<header>


What tag isolates a part of text that might be formatted in a different direction from other text outside it
all of these answers
<command>
<figure>
<bdi>
<aside>


Which is true about the placeholder attribute of <input> elements?
It may contain both HTML and CSS
It cannot contain HTML or CSS
It may contain CSS but not HTML
It may contain HTML but not CSS


True or False: Clickable inputs, by default, have a pointer cursor applied to it in all browsers.
True
False


Which of the following is the starting point of the line to draw straight line on a canvas?
startFrom(x,y)
moveTo(x,y)
moveFrom(x,y)
startTo(x,y)


After the browser fires an `updateready` event, which of the following is true?
The new cache resources are ready, but old cache resources are still being used
The new cache resources are ready, and the browser is about to reload
New cache resources have been fetched and the page has been reloaded
The browser is ready to begin fetching updated cache resources


Which of the following is a possible way to get fullscreen video played from the browser using HTML5?
<object><param name="allowFullScreen" value="true"/>
<video height="100%" width="100%">
None of these
<video allowFullScreen="true">


Which is not an example of media types?
media="handheld"
media="screen"
media="mobile"
media="print"


Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
allow-same-origin
url
allow-scripts
allow-forms


In HTML 5.0, what is the function of the sandbox attribute when used with <iframe> as shown below? <iframe src="aaa " sandbox=?></iframe>
It is used to specify that an iframe should appear as if it is part of the document the iframe is in.
It is used to define the restrictions to the frame content.
It is used to define the URL of the document that should appear in the iframe.


Which of the following does not usually work well with multi-touch environments and sould be disabled?
Tracking
Gesturing
Zooming
Scrolling


Which of the following html tag isn't supported in HTML5?
<acronym>
all are supported in HTML5
<abbr>
<base>
all are NOT supported in HTML5


Which of the following is used to create an app package?
JavaScript
An app development tool
DOM
CSS


When is the window onstorage event triggered in the HTML document?
It is triggered when a document performs an undo function.
It is triggered when a document loads.
It is triggered when the window is resized.
It is triggered when the window becomes visible.


True or False: You can place a footer tag inside of a footer tag.
True
False


If IE8 doesn't recognize an element (such as <article>), what will it do with that element?
Not display it at all
Display it the same way it would display a <div>
Display it as an empty inline element with no children
Display it as you would expect


How to display an image when media is downloading by <video> element in HTML5:
Using anyone of the above.
Using src attribute link to image.
Using controls attribute.
Using poster attribute.
Using default attributes.


True or False: Any element drawn in a <canvas> is part of the DOM.
False
True


Which of the following statements is correct if you allow the user to select only one radio button from a group of radio buttons?
content-type
refresh
keywords


Which of the following is incorrect value provided to "rel" attribute of Anchor Tag ?
previous
bookmark
help
license


Which of the following is not new form element of HTML5?
<datalist>
<optgroup>
<output>
<keygen>


Is this the preferred method of using the cite tag in HTML5? <cite>John Doe</cite>
No
Yes


Which of the following is false about poster attribute of <video> element?
It accepts absolute URL.
If this is not specified it will display first frame of the video.
If this is not specified it will display black screen.
The poster attribute specifies an image to be shown while the video is downloading.
It accepts relative URL.


After checking all files in the cache manifest for updates, and finding several files that need to be updated, which event will the browser fire?
checking
update
downloading
noupdate


Which tag's positioning is independent of the main flow of the document?
<details>
<summary>
<article>
<figure>


What type of <input> doesn't support the attribute maxlength?
Search
Email
Number
Text
URL


Which attribute should be used to indicate that a <time> element represents the date of a blog post?
postdate
date
datetime
pubdate


Which operating systerm environment allows a developer to access a camera or webcam?
Local Storage
Metro
WinRT
the session state


How does a button created by the <button> tag differ from the one created by an <input> tag?
A button tag button can be a reset button too.
An input tag button can include images as well.
A button tag can include images as well.
An input tag button can be a reset button too.


Which of the next video formats is not entirely available for Firefox Browsers?
MP4
WebM
Ogg


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>
checkbox
radio
button
command


A wrapper around the html5lib library for sanitizing HTML is called a:
html-whitelist
html sanitizer
html wrapper
5lib


This tag is now deprecated:
font
frame
frameset


Which method will use to get the dragged data?
dataTransfer.getdragelement
dataTransfer.getdragdata
dataTransfer.gedata
dataTransfer.sedata


Which tool is a type of validator that tests your app on your computer before you attempt to package and publish it to the Windows Store?
Windows 8
Windows App Certification Kit
W3C Markup Validation Service
WinRT


On which object will the browser fire history events (such as when the back button is pressed)?
window
history
document
navigator


Which of the following is not a valid attribute for the <script> element?
defer
async
src
These are all valid
scope


Which of the following is not attribute of the <track> element.
label
src
kind
subtitle
default


What attributes do you assign to <map> tags?
Name
Max
Action
All of these
Method


Which of the following is not event of <video> element
seeking
waiting
abort
emptied
loadedmetadata


Which of these is NOT one of the five different element types?
Foreign elements
Raw data elements
Void elements
Raw text elements
RCDATA elements


Which of the following is incorrect way to set the loop attribute of <video> element in HTML5?
All are correct.
<video loop>
<video loop="loop">
<video loop="">
<video loop="default">


Which media event is triggered when there is an error in fetching media data in HTML 5.0?
onstalled
oninvalid
onsuspend
onwaiting


What is the method to draw text(no fill) on a canvas?
drawText(text,x,y,)
fillStroke(text,x,y,)
drawStroke(text,x,y,)
StrokeText(text,x,y,)


Which of the following web browser doesn't support the loop attribute of <video> element?
Opera 10.6
Apple Safari 5
Firefox 4.0
Internet Explorer 9
Google Chrome 6


Which of the following attribute is responsible for subtitle of a video inside <video> element?
<caption>
<source>
<autoplay>
<track>
<subtitle>


Which of the following is not event of <video> element?
abort
ended
error
timeupdate
empty


Controls attribute in <video> element doesn't include:
Track (when available in media)
Captions/Subtitles (when available in media)
Full screen toggle
Source
It includes all of the above.


When autoplay attribute has defined in <video> element then:
Web browser assume preload="metadata"
Web browser assume preload="auto"
preload attribute is ignored.
None of these.


What are the valid properties of the options object that may be passed to navigator.geolocation.getCurrentPosition?
enableHighAccuracy, timeout, maximumAge
enableHighAccuracy, timeout, onError, onSuccess
enableHighAccuracy, timeout, maximumAge, onError, onSuccess
enableHighAccuracy, timeout, onError


Which of the following is not event of <video> element?
error
pause
progress
play


What should be the value of the 'rel' attribute for a <LINK> element that specifies an RSS feed?
external
stylesheet
feed
alternate


Which of the following is NOT a valid attribute of the <time> element?
pubDate
dateTime
valueAsDate
date