Elance HTML5 Test Answers
Which of the following is NOT a valid <meta type="robots" content="<values>" /> value.
nocache
What is the difference between padding and margin?
margin auto-collapses, padding doesn't
What is the minimal way to define the character set with meta tag?
<meta charset="UTF-8">
Which HTML5 tag would most semantically group a page title (in an H1 tag) and tagline (in an H2 tag)?
<hgroup>
What is the tag used to define attribute values for one or more columns in a table?
<col>
Which script is useful in rendering dynamic images in canvas?
<javascript>
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.
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.
<meta charset="utf-8" /> should be placed...
right after the opening <head> tag.
What is the correct email input tag?
<input type="email" name="user_email" />
Which of the following code snippets will create dotted strokes(e.g. -.-.-.-.-.) in an HTML5 canvas?
while(){ $('element1').css('width','20px') $('element2').css('width','3px') }
Which of the following is NOT a valid attribute of the <time> element?
date
Which of the following is not event of <video> element?
error
Which of the following attribute is responsible for subtitle of a video inside <video> element?
<track>
Which of the following is not event of <video> element
seeking
When autoplay attribute has defined in <video> element then:
preload attribute is ignored.
What is the method to draw text(no fill) on a canvas?
StrokeText(text,x,y,)
Controls attribute in <video> element doesn't include:
Source
Which of the following web browser doesn't support the loop attribute of <video> element?
Opera 10.6
Which of the following is incorrect way to set the loop attribute of <video> element in HTML5?
<video loop="default">
Which of the following is not attribute of the <track> element.
subtitle
Which method will use to get the dragged data?
dataTransfer.getData
Which of these is NOT one of the five different element types?
Raw data elements
What should be the value of the 'rel' attribute for a <LINK> element that specifies an RSS feed?
alternate
Which operating systerm environment allows a developer to access a camera or webcam?
Metro
Which of the following is not a valid attribute for the <script> element?
scope
How does a button created by the <button> tag differ from the one created by an <input> tag?
An input tag button can be a reset button too.
Which media event is triggered when there is an error in fetching media data in HTML 5.0?
onstalled
Which of the following elements was NOT removed from HTML5?
<small>
What are the valid properties of the options object that may be passed to navigator.geolocation.getCurrentPosition?
enableHighAccuracy, timeout, maximumAge
What attributes do you assign to <map> tags?
Name
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 define the restrictions to the frame content.
Which of the next video formats is not entirely available for Firefox Browsers?
MP4
A wrapper around the html5lib library for sanitizing HTML is called a:
html-whitelist
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?
downloading
Which of the following does not usually work well with multi-touch environments and sould be disabled?
Tracking
On which object will the browser fire history events (such as when the back button is pressed)?
window
What is the output when you use the HTML 5.0 code snippet shown below?
It will alert saying “[object Window]" when the document is loaded.
When is the window onstorage event triggered in the HTML document?
It is triggered when a document performs an undo function.
What type of <input> doesn't support the attribute maxlength?
Number
What is the proper syntax for specifying a cache manifest?
<html manifest=”/cache.manifest”>
Which section of a cache manifest file specifies files which should not be cached?
NETWORK
True or False: Any element drawn in a <canvas> is part of the DOM.
False
Which of the following is incorrect value provided to "rel" attribute of Anchor Tag ?
previous
What tag isolates a part of text that might be formatted in a different direction from other text outside it
<bdi>
Is this the preferred method of using the cite tag in HTML5? <cite>John Doe</cite>
No
Which of the following is used to create an app package?
JavaScript
True or False: You can place a footer tag inside of a footer tag.
False
True or False: Clickable inputs, by default, have a pointer cursor applied to it in all browsers.
False
Which tag's positioning is independent of the main flow of the document?
<figure>
<rp> is used to:
Define what to show in browsers that do not support ruby annotations
Which event will be fired when the user presses the back button?
popstate
Which is true about the placeholder attribute of <input> elements?
It cannot contain HTML or CSS
Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?
compact
Which of the elements below is displayed inline by default?
<textarea>
Which is not an example of media types?
media="mobile"
If IE8 doesn't recognize an element (such as <article>), what will it do with that element?
Display it as an empty inline element with no children
Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
url
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
Using HTML5, what would be the most semantic tag for highlighting a few words inside a <p> element?
<mark>
What is the minimum needed to create a HTML5 document?
<!DOCTYPE html> <title>Title of the document</title>
Which is not a valid tag?
<location>
In HTML5, contextmenu and spellcheck are:
HTML attributes
Which of the next attributes was added to the anchor tag in HTML5?
media
Which of the following is NOT a valid way to store a value in local storage?
document.localStorage[“key”] = “value”;
Which method is used to create a circular gradient?
createRadialGradient(x,y,r,x1,y1,r1)
<rt> is used to define:
an explanation/pronunciation of characters
What is a new attribute for both <form> and <input>?
autocomplete
Which tag has semantic significance?
<strong>
Which of the following html tag isn't supported in HTML5?
<acronym>
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
Which of the following is a current element in HTML5?
<output>
Which of the following mouse events are used when handling a drag/drop event?
ondragenter
What MIME-type must a cache manifest be served with?
text/cache-manifest
What is the method to draw filled text on a canvas?
fillText(text,x,y,)
Which HTML5 tag would be best for wrapping the date of a blog post?
<time>
What is a valid AppCache manifest file extension?
All of these
Which of the following is not property of <video> element?
abort
Click on the element below that does NOT exist in HTML5.
<ld>
What is the <wbr> tag used for?
Defines a possible line-break
When is the popstate event on a window dispatched?
Everytime the active history entry changes.
According to the W3C HTML5 specification, which one of these may the <time> element NOT represent?
A length of time in milliseconds
What is the proper syntax to make a text input autofocus?
<input autofocus>
What is the amount of local storage space per origin recommended by the W3C?
5 megabytes
In which order would these cache manifest events be fired?
checking, downloading, progress, cached
You're developing a Metro style app and want the app to access another app. Where do you declare the interaction?
App manifest
The <summary> tag must have which tag as its parent?
<details>
Within a fieldset, you can give a name to a group of input fields with:
<legend>
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.
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 is played to the end, without stopping for buffering.
Which three properties are guaranteed to be provided as part of a geolocation position object?
latitude, longitude, accuracy
Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
Files listed under this header will be cached after they are downloaded.
CACHE MANIFEST
What is the mime type for a manifest file?
text/cache-manifest
What is a Web Worker?
JavaScript script running in the background of the page
Which of the following defines a visible heading for a <details> element?
<summary>
Which is the correct <canvas> tag declaration?
<canvas id="myCanvas" width="800" height="600" > <p>Your browser is sooooo old! Download a modern one now! </p> </canvas>
Which built-in HTML5 object is used to draw on the canvas?
getContext
Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?
hreflang
Which method lets you access the canvas to start drawing on it?
getContext();
What are the valid properties of the options object that may be passed to navigator.geolocation.getCurrentPosition?
enableHighAccuracy, timeout, maximumAge
What is a <b> tag used for?
nocache
What is the difference between padding and margin?
margin auto-collapses, padding doesn't
What is the minimal way to define the character set with meta tag?
<meta charset="UTF-8">
Which HTML5 tag would most semantically group a page title (in an H1 tag) and tagline (in an H2 tag)?
<hgroup>
What is the tag used to define attribute values for one or more columns in a table?
<col>
Which script is useful in rendering dynamic images in canvas?
<javascript>
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.
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.
<meta charset="utf-8" /> should be placed...
right after the opening <head> tag.
What is the correct email input tag?
<input type="email" name="user_email" />
Which of the following code snippets will create dotted strokes(e.g. -.-.-.-.-.) in an HTML5 canvas?
while(){ $('element1').css('width','20px') $('element2').css('width','3px') }
Which of the following is NOT a valid attribute of the <time> element?
date
Which of the following is not event of <video> element?
error
Which of the following attribute is responsible for subtitle of a video inside <video> element?
<track>
Which of the following is not event of <video> element
seeking
When autoplay attribute has defined in <video> element then:
preload attribute is ignored.
What is the method to draw text(no fill) on a canvas?
StrokeText(text,x,y,)
Controls attribute in <video> element doesn't include:
Source
Which of the following web browser doesn't support the loop attribute of <video> element?
Opera 10.6
Which of the following is incorrect way to set the loop attribute of <video> element in HTML5?
<video loop="default">
Which of the following is not attribute of the <track> element.
subtitle
Which method will use to get the dragged data?
dataTransfer.getData
Which of these is NOT one of the five different element types?
Raw data elements
What should be the value of the 'rel' attribute for a <LINK> element that specifies an RSS feed?
alternate
Which operating systerm environment allows a developer to access a camera or webcam?
Metro
Which of the following is not a valid attribute for the <script> element?
scope
How does a button created by the <button> tag differ from the one created by an <input> tag?
An input tag button can be a reset button too.
Which media event is triggered when there is an error in fetching media data in HTML 5.0?
onstalled
Which of the following elements was NOT removed from HTML5?
<small>
What are the valid properties of the options object that may be passed to navigator.geolocation.getCurrentPosition?
enableHighAccuracy, timeout, maximumAge
What attributes do you assign to <map> tags?
Name
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 define the restrictions to the frame content.
Which of the next video formats is not entirely available for Firefox Browsers?
MP4
A wrapper around the html5lib library for sanitizing HTML is called a:
html-whitelist
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?
downloading
Which of the following does not usually work well with multi-touch environments and sould be disabled?
Tracking
On which object will the browser fire history events (such as when the back button is pressed)?
window
What is the output when you use the HTML 5.0 code snippet shown below?
It will alert saying “[object Window]" when the document is loaded.
When is the window onstorage event triggered in the HTML document?
It is triggered when a document performs an undo function.
What type of <input> doesn't support the attribute maxlength?
Number
What is the proper syntax for specifying a cache manifest?
<html manifest=”/cache.manifest”>
Which section of a cache manifest file specifies files which should not be cached?
NETWORK
True or False: Any element drawn in a <canvas> is part of the DOM.
False
Which of the following is incorrect value provided to "rel" attribute of Anchor Tag ?
previous
What tag isolates a part of text that might be formatted in a different direction from other text outside it
<bdi>
Is this the preferred method of using the cite tag in HTML5? <cite>John Doe</cite>
No
Which of the following is used to create an app package?
JavaScript
True or False: You can place a footer tag inside of a footer tag.
False
True or False: Clickable inputs, by default, have a pointer cursor applied to it in all browsers.
False
Which tag's positioning is independent of the main flow of the document?
<figure>
<rp> is used to:
Define what to show in browsers that do not support ruby annotations
Which event will be fired when the user presses the back button?
popstate
Which is true about the placeholder attribute of <input> elements?
It cannot contain HTML or CSS
Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?
compact
Which of the elements below is displayed inline by default?
<textarea>
Which is not an example of media types?
media="mobile"
If IE8 doesn't recognize an element (such as <article>), what will it do with that element?
Display it as an empty inline element with no children
Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
url
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
Using HTML5, what would be the most semantic tag for highlighting a few words inside a <p> element?
<mark>
What is the minimum needed to create a HTML5 document?
<!DOCTYPE html> <title>Title of the document</title>
Which is not a valid tag?
<location>
In HTML5, contextmenu and spellcheck are:
HTML attributes
Which of the next attributes was added to the anchor tag in HTML5?
media
Which of the following is NOT a valid way to store a value in local storage?
document.localStorage[“key”] = “value”;
Which method is used to create a circular gradient?
createRadialGradient(x,y,r,x1,y1,r1)
<rt> is used to define:
an explanation/pronunciation of characters
What is a new attribute for both <form> and <input>?
autocomplete
Which tag has semantic significance?
<strong>
Which of the following html tag isn't supported in HTML5?
<acronym>
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
Which of the following is a current element in HTML5?
<output>
Which of the following mouse events are used when handling a drag/drop event?
ondragenter
What MIME-type must a cache manifest be served with?
text/cache-manifest
What is the method to draw filled text on a canvas?
fillText(text,x,y,)
Which HTML5 tag would be best for wrapping the date of a blog post?
<time>
What is a valid AppCache manifest file extension?
All of these
Which of the following is not property of <video> element?
abort
Click on the element below that does NOT exist in HTML5.
<ld>
What is the <wbr> tag used for?
Defines a possible line-break
When is the popstate event on a window dispatched?
Everytime the active history entry changes.
According to the W3C HTML5 specification, which one of these may the <time> element NOT represent?
A length of time in milliseconds
What is the proper syntax to make a text input autofocus?
<input autofocus>
What is the amount of local storage space per origin recommended by the W3C?
5 megabytes
In which order would these cache manifest events be fired?
checking, downloading, progress, cached
You're developing a Metro style app and want the app to access another app. Where do you declare the interaction?
App manifest
The <summary> tag must have which tag as its parent?
<details>
Within a fieldset, you can give a name to a group of input fields with:
<legend>
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.
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 is played to the end, without stopping for buffering.
Which three properties are guaranteed to be provided as part of a geolocation position object?
latitude, longitude, accuracy
Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
Files listed under this header will be cached after they are downloaded.
CACHE MANIFEST
What is the mime type for a manifest file?
text/cache-manifest
What is a Web Worker?
JavaScript script running in the background of the page
Which of the following defines a visible heading for a <details> element?
<summary>
Which is the correct <canvas> tag declaration?
<canvas id="myCanvas" width="800" height="600" > <p>Your browser is sooooo old! Download a modern one now! </p> </canvas>
Which built-in HTML5 object is used to draw on the canvas?
getContext
Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?
hreflang
Which method lets you access the canvas to start drawing on it?
getContext();
What are the valid properties of the options object that may be passed to navigator.geolocation.getCurrentPosition?
enableHighAccuracy, timeout, maximumAge
What is a <b> tag used for?
- To define bold text
Progress bars are supported natively using the…
- <progress> element
The code for text area is:
- <textarea>words</textarea>
Which <body> tag event is fired when the user leaves the document?
- onunload
To limit the length of input in a form field use:
- maxlength
Which of the following web browser doesn’t support the muted attribute of <video> element?
- Internet Explorer 9
What does the <nav> element represent?
- a section of a page that links to other pages or to parts within the page.
Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?
- onsubmit
The <progress> element is capable of an indeterminate progress.
- True
Which of these is not a valid HTML5 tag?
- baseline
True or False: HTML5 Canvas can be used to create images.
- True
Which of the following are valid element types for input fields?
- All of them
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.
The Web workers API allows you to…
- all of these
What does the <hgroup> tag do?
- Groups a set of <h1> to <h6> elements when a heading has multiple levels
Integration of what type of content allows you to specify graphics in an xml format?
- SVG
True of false: older browsers ignore HTML5 constructs?
- True
Which of the following are valid mouse events in HTML 5.0?
- All are correct
What is the use of <kbd>?
- Defines keyboard input
The <!DOCTYPE> declaration in HTML5 is?
True or False: <svg> is more suited to draw vector graphics and <canvas> is better with bitmaps.
- True
Geolocation is much more accurate for devices with GPS, like iPhone
- True
What is the correct HTML5 element for playing video files?
- <video>
Which of the following are sample use cases for HTML5 web workers?
- all of these.
The <canvas> element is new to HTML5 and allows you to…
- draw graphics on a web page using JavaScript APIs.
What does SVG stand for?
- Scalable Vector Graphics
The <canvas> element in HTML5 is used to:
- draw graphics
The <section> tag is allowed to define:
- all of these
True or False: You can now set an input field as “required” without the use of Javascript.
- True
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
- True
The meter element are measurements that are part of a scale with minimum and maximum values.
- True
id stands for:
- unique identifier
What does the <mark> tag define?
- marked/highlighted text
Which HTML5 element is used to specify a footer for a document or section?
- <footer>
In HTML5, you can embed SVG elements directly into an HTML page.
- True
<!doctype html> replaces which doctypes?
- All of these
Examples of usage for the <article> element are
- all of these
What is an <i> element most often used for?
- To define italic text
JavaScript is a type of:
- Scripting language
Click on the element below that is displayed as a list item? Click on the element below that is displayed as a list item?
- <li>
Some of the benefits of HTML5 directly effect…
- all of these
Which tag is used to display graphics?
- <canvas>
How many <nav> tags can you have in a html5 document?
- any number
<button> is a:
- valid HTML5 tag
The HTML5 element used to draw graphics via scripting is?
- <canvas>
Can you drag and drop in HTML5?
- Yes
What is the correct doctype in html 5?
- <!DOCTYPE HTML>
HTML5 was created to be:
- all of these.
What is required to run the Geolocation API on your device?
- A browser which supports HTML5
What attributes do you assign to <form> tags?
- All of these
<section> tags are used to improve the semantic quality of the document, and better differentiate between sections of the page.
- True
What is the correct tag for command?
- <command>
The tag used to define navigation links is?
- <nav>
How many footers can you have in a html 5 document?
- any number
The canvas element is used to:
- draw images on a web page
Which of the following are valid HTML 5.0 elements?
- All are correct
Which of the following are native date pickers that are defined in HTML5?
- all of these
When do you use an <a> tag?
- To define a hyperlink
Can a <section> contain <article> elements?
- True
Can a <article> contain <section> elements?
- True
Which HTML5 element should be used to group navigation links?
- <nav>
What is the purpose of <em> tags?
- To define emphasized text
What does the <header> tag define?
- a header for a document or section
True or False: The <canvas> tag is only a container for graphics, you must use a script to actually draw the graphics.
- True
What is the correct HTML5 element for playing audio files?
- <audio>
HTML5 comments look like this:
- <!– –>
What attributes do you assign to <audio> tags?
- All of these
HTML is client side execution language.
- TRUE
Which HTML5 tag would most semantically group a page title (in an H1 tag) and tagline (in an H2 tag)
- <hgroup>
Which tag is considered an HTML5 tag?
- <header>
Which browser does NOT support SSE (Server sent events)
- Internet Explorer
Which attribute in <video> element is responsible for start playing as soon as it is ready?
- autoplay
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.
What is the minimal way to define the character set with meta tag?
- <meta charset=”UTF-8″>
SVG is used to define what?
- vector-based graphics for the Web
What is the tag used to define attribute values for one or more columns in a table?
- <col>
The <frame> element is an obsolete element in HTML5.
- True
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>
Which tag defines a command button that a user can invoke?
- <command>
The Geolocation API guarantees that the returned location coordinates will be accurate to within:
- No guarantee is given that the API returns the device’s actual location.
SVG graphics do NOT lose any quality if they are zoomed or resized
- True
What is Canvas?
- All of these
<span> is no longer used in HTML5:
- False
The tag to specify illustrations, diagrams, photos is?
- <figure>
When you format images with <img> tags, which attribute do you not use?
- All of these
Which tag is able to render a graphic image?
- <img>
Which of the next tags is new in HTML5?
- All of them
The canvas element:
- works in conjunction with JavaScript
How do you make an input tag checked? You add:
- checked=”checked”
Which tag would semantically separate a section of photos from a section of videos?
- <section>
Adding height and width to img elements can…
- all of these.
The process of giving all elements in a page a margin of 0 and padding of 0 is called a:
- reset
Which is the correct DOCTYPE for HTML5?
- <!DOCTYPE html>
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 href=”mailto:webmaster@xcompany.com” >webmaster</a>
What is the proper syntax for adding placeholder text to a text input?
- <input placeholder=”Placeholder text” />
Which of the following should be used for entering urls?
- <input type=”url” name=”user_url” />
Which script is useful in rendering dynamic images in canvas?
- <javascript>
What is the purpose of <svg> tags?
- To draw pictures or text using Scalable Vector Graphics
Which tag is used for describing details about a document?
- <details>
True or False: You can’t put divs in HTML5 footer tags.
- False
What is the correct email input tag?
- <input type=”email” name=”user_email” />
What is the role of the <dfn> element in HTML 5.0?
- It is used to define a definition term
Which is the correct tag used for input fields, that contain a numeric value?
- <input type=”number” name=”points” min=”1″ max=”10″ />
Controls attribute in <video> element doesn’t include
- It includes all of the option.
AppCache, localStorage, and sessionStorage are forms of:
- Web storage
What are/is the most important differences between XHTML and HTML?
- All of them
HTML5 form validation will validate all specified field types and…
- required fields.
Which of the below is not a html 5 element
- <frame>
HTML5 was partially created by WHATWG and:
- W3C
You should insert text content between the <video> and </video> tags for browsers that do not support the <video> element.
- True
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>
Which of the following is correct?
- HTML5 describes the content of a page while CSS defines style rules.
What attribute should you not assign to <img> tags?
- align
Which HTML tag should be used to contain each individual post on a page of blog posts?
- <article>
<meta charset=”utf-8″ /> should be placed…
- right after the opening <head> tag.
A button that empties the form for the user to begin again is created with:
- <input type=”reset”/>
This tag is now deprecated:
- all of these
In HTML5, which attribute is used to specify that an input field must be filled out?
- required
Can a web page contain multiple <footer> elements?
- True
<nav> is an HTML5:
Which of the following is a not content-specific element in HTML5?
- <narrow>
What is the role of the <dfn> element in HTML5?
- It is used to define a definition term.
A HTML5 SSE allow a web page to _________
- automatically gets updates from a server
HTML5 offers two new objects which use JavaScript APIs for storing local data. These new objects are…
- localStorage and sessionStorage.
Do all web browsers support all HTML5 features equally?
- No
What Is the correct html 5 doc type declaration ?
- <!DOCTYPE html>
Which of the following languages will you use to paint the graphics designed using the HTML 5.0 <canvas> tag?
- JavaScript
When using an <input type=”email”> field many modern browsers will display a tool-tip warning for easier client-side form validation.
- True, but this should not replace server-side validation.
Using HTML5, what would be the most semantic way to group a section of ads?
- <aside>
What can HTML 5 forms NOT do?
- completely replace server side form validation
video/ogg, video/mp4 and video/webm are all examples of:
- MIME types
In HTML5, onblur and onfocus are:
- Event attributes
Aside tags are useful for…
- secondary content
How can audio files be played in HTML5? var sound = new Audio(“file.wav”);
- play();
What does the <details> tag do?
- Defines additional details that the user can view or hide
Which tag specifies the caption inside a figure element?
- <figcaption>
Which tag can be used inside the <details> tag?
- <summary>
Which attribute in <video> element is responsible for play/pause button?
- controls
- Which of the following is not true about kind attribute of a <track> element?
- All
Which of the following is an INVALID value for the type attribute of command tag?
- command
The browser remembers data from a form and outputs it using:
- autocomplete
Sections encapsulate…
- any valid mark-up or content
Does HTML5 use new tags not supported by HTML4?
- Yes
Which of the following tags is not supported in HTML5?
- <frame>
A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?
- <code>
To make a form submit you can use:
- <button type=’submit’>
The <figure> and <figcaption> elements were primarily added to the specification for what purpose?
- To offer a semantically correct markup for displaying image captions
A placeholder attribute in an input field…
- sets default gray helper text for the field.
In chrome, setting autofocus in an input field will cause the field to _____ when the user clicks into it.
- light up
An example of a new HTML5 element would be:
- <audio>
<applet> tag is not supported by HTML5 Now which tag you can use in place of <applet> ?
- <object>
Which component is not a primary element of the HTML5 family?
- XML
Which tag would you use in the <HEAD> to set the document character encoding to UTF-8?
- <meta charset=”utf-8″ />
True or False: The element <font> is a current element in HTML5.
- False
Which of the following can be a potential section in an application cache manifest file?
- All options can be sections
All of the following are true of HTML5 except:
- It requires Windows 8
A media element that allows for dynamic, scriptable rendering of images is:
- Canvas
Which of the following in not true about height and width attribute in <video> element in HTML5.
- All are correct.
The method to draw a rectangle filled with current fill style is
- fillRect(x,y,width,height)
The element <noframes> is a current element in HTML5.
- False
What is the correct tag for independent and self-contained content?
- <article>
What type of tag is not supported by HTML5?
- <font>
<object> defines an:
- embedded object
Can a web page contain multiple <header> elements?
- True
How would an older (non-HTML5) browser handle an <input type=”email” /> element?
- Display it as a text input
Graphics defined by SVG is in which format?
- XML
How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application?
- parent
The _____ attribute specifies the elements text directionality.
- dir
The <video> element allows:
- Multiple <source> elements.
Blockquote tags are:
- valid HTML5 mark-up
The element <big> is a current element in HTML5.
- False
Which of the following elements is no longer supported in HTML5?
<acronym>
Which of the following elements is no longer supported in HTML5?
- <font>
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>
- Yes, it seems correct.
The action attribute in a <form> element:
- specifies the URL of the service that will handle the submitted data.
Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
- colgroup
True or False: There can be only 1 <footer> element on any given page.
- False
You can force a scroll bar onto a page by using:
- CSS overflow
Which of the following is not a valid input type of the form tag?
- All are valid
The element to specify a list of predefined options for input controls is?
- <datalist>
What is Application Cache?
- Enables a web application to cache itself and make it readable without an internet connection.
Search is a valid input type.
- True
Which of the following tags is not supported by HTML5?
- <frame>
Which of the following is false about autoplay attribute of <video> element?
- All
To make radio buttons work as a group you give them the same_____.
- name
Height of the video player by <video> element depends:
- Height attribute
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”
Minimizing HTML code gets rid of:
- whitespace
What attribute makes a radio button or checkbox input selected?
- checked=”checked”
Tables are now obsolete in HTML5.
- False
Which of the following tags is used to define multiple media resources for <video> or <audio>?
- <source>
The placeholder attribute:
- allows the developer to define the text that will appear in a textbox control.
What is the correct HTML element used for different types of output, like calculations or script output?
output></output>
<video> tags display video the same way in each browser.
- False
In HTML5, which method is used to get the current location of a user?
- getCurrentPosition()
Which of the following video file formats are currently supported by the <video> element of HTML 5.0?
- MPEG 4
How do you make an element draggable ?
- <img draggable=”true” />
The <time> element:
- Defines a date/time.
What is the new Audio Video file format sponsored by Google for use in across all HTML5 supported browsers
- .WebM
What do <video> and <audio> require (for users)?
- a modern web browser with good HTML 5 support, and at least one codec offered by the video/audio
Which of the following is NOT a valid attribute for the <video> element in HTML 5.0? Which of the following is NOT a valid attribute for the <video> element in HTML 5.0?
- disabled
Which attribute in <video> element is responsible for video will start over again, every time it is finished?
- loop
Which of the following would give a yellow background to the web page?
- <body bgcolor=”Yellow”>
True of false? The canvas tag is the only one available to draw images.
- False
<applet> is an element of HTML5?
- False
Which attribute for <script> elements is no longer required in HTML5?
- type
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.
An input with a type hidden will be ignored by the browser.
- False
Which of the following method is used to draw an image on a canvas?
- drawImage(image,x,y)
True or False: Using semantically correct HTML5 tags will cause all browsers to display a page layout the same
- False
Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?
- <input name=be evil />
In an input field, a telephone number should have which type?
- tel
Which of the following is not new element of HTML5?
<kbd>
Which of the following is not new element of HTML5?
- <noscript>
The title attribute is used in:
- all of these.
The method used to a circle on a canvas is?
- arc(x,y,r,start,stop)
Which of the following tags is supported by HTML5?
- <time>
What will happen if you exceed the allotted local storage space for your origin?
- A “QUOTA_EXCEEDED_ERR” will be thrown
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
When combined with the <figcaption> element, we can now semantically associate captions with their image counterparts with what element?
- <Figure>
What are the two new objects for storing data on the client in HTML 5?
- localStorage and sessionStorage
What is the function of the history traversal task source in HTML 5.0?
- It is used to queue calls to history.back() and similar APIs.
Which of the following is NOT a benefit offered by using application cache?
- Security: data stored within the cache is protected from external access.
Select tags encapsulate:
- option tags
The element <basefont> is a current element in HTML5
- False
The <strike> element is valid HTML5.
- It’s obsolete.
<video controls=”controls” preload=”auto”> <source src=”song.mp4″ type=”video/mp4″ /> </video> Which of the following is true?
- It should load the entire video when the page loads.
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
To increase or decrease the integer value in a number type input field use:
- step
Which of the following attributes are NOT supported in HTML 5.0?
- marginheight
True or false: is deprecated in HTML5.
- True
What does the meter tag define?
- A scalar measurement within a known range
What is the correct way to set the autoplay attribute in HTML5?
- All are correct.
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 is played to the end, without stopping for buffering.
The
- Footer
Which attributes are supported on the canvas element (among others)?
- id, width and height
The onhashchange event only dispatches when
- the hash portion of the current URL changes.
tags are used for…
- embedded movies
Auto buffering in HTML5 has been replaced with?
- Preload
The element is part of HTML5.
- False
Which tag is used for an introduction of a document or a section?
- <header>
The element is not a current element in HTML5.
- True
Which of the following is a valid attribute in HTML5?
- data-count=”4″
On which object does the browser fire cache manifest events?
- applicationCache
Which is the correct tag declaration?
- Your browser is sooooo old! Download a modern one now!
What would be a valid input for this field: ?
- 2
Forms have been greatly improved because…
- more can be handled by the browser
Which of the following is NOT a valid value for the “type” attribute of an element?
- name
What is the function of onobsolete, an application cache API method in HTML 5.0?
- It triggers an event when the cache content has been marked as obsolete.
In a cache manifest, which header is used to specify a backup URL if the URL is inaccessible?
- fallback:
What is the internal/wire format of input type=”date” in HTML5?
- YYYY-MM-DD
Which API allows programs and scripts to update content, structure, and stles on the fly?
- JavaScript
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>
Using HTML5, syntax errors will be treated uniformly by all conforming browsers and other user agents.
- True
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
Which of the following is true?
- It should load only metadata when the page loads.
Which of the following is NOT a valid syntax for the
element in HTML 5.0?
This is header 1
The built-in HTML5 object to draw lines, circles, text, rectangles etc. is?
- getContext(“2d”)
What is the default background color for the canvas element in HTML 5.0?
- Transparent
Which attribute in element is responsible for audio output of the video should be muted
- muted
After checking all files in the cache manifest for updates, and finding NO updates, which event will the browser fire?
- noupdate
In which order would these cache manifest events be fired
- checking, downloading, progress, cached
What is the mehtod to draw filled text on a canvas?
- fillText(text,x,y,)
What is a valid manifest file extension?
- All of these
In HTML5, contextmenu and spellcheck are:
- HTML attributes
Which of the following is the ending point of the line in a straight line drawing on a canvas?
- lineTo(x,y)
If there are multiple element inside a element. Browser will display the video of:
- Will depend upon the browser support of media source.
Which of the following defines a visible heading for a
True or false? An input with a type hidden will be ignored by the browser.
False
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>
Yes, it seems correct.
True or false: <u> is deprecated in HTML5.
True
The element <big> is a current element in HTML5.
False
<video controls="controls" preload="auto">
<source src="song.mp4" type="video/mp4" />
</video>
Which of the following is true?
It should load the entire video when the page loads.
What does minimizing HTML code get rid of?
whitespace
Which of the following <iframe> attributes are NOT supported in HTML 5.0?
marginheight
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
<video> tags are used for...
embedded movies
Which attribute in <video> element will cause the video to start over every time it is finished?
loop
The <canvas> element is a:
Resolution-dependent bitmap canvas
The <header> element should NOT be used within which element?
Footer
Which of the following is false about poster attribute of <video> element?
If this is not specified it will display black screen.
does a button created by the <button> tag differ from the one created by an <input> tag?
An input tag button can be a reset button too.
Which attribute should be used to indicate that a <time> element represents the date of a blog post?
pubdate
True or false? An input with a type hidden will be ignored by the browser.
False
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>
Yes, it seems correct.
True or false: <u> is deprecated in HTML5.
True
The element <big> is a current element in HTML5.
False
<video controls="controls" preload="auto"> <source src="song.mp4" type="video/mp4" /> </video> Which of the following is true?
It should load the entire video when the page loads.
What does minimizing HTML code get rid of?
whitespace
Which of the following <iframe> attributes are NOT supported in HTML 5.0?
marginheight
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
<video> tags are used for...
embedded movies
Which attribute in <video> element will cause the video to start over every time it is finished?
loop
The <canvas> element is a:
Resolution-dependent bitmap canvas
The <header> element should NOT be used within which element?
Footer
Which of the following is false about poster attribute of <video> element?
If this is not specified it will display black screen.
does a button created by the <button> tag differ from the one created by an <input> tag?
An input tag button can be a reset button too.
Which attribute should be used to indicate that a <time> element represents the date of a blog post?
pubdate
Comments
Post a Comment