Sunday, December 6, 2015

Html5 upwork test answers of 2016

Find here all html5 upwork test answers of 2016.All correct test answers here you can find or html5 upwork skill test. Complete and recently updated Correct Question and answers of  HTML5.All Answers updated regulerly with new questions.upwork Html5,Html test answers of 2016.




Question:* Which of the following statements regarding WebSockets is true?

Answer: • All of the above.

Question:* Assuming that some text needs to be written on an HTML5 canvas, select a replacement for the commented line below: <canvas id="e" width="200" height="200"></canvas> <script> var canvas = document.getElementById("e"); //insert code here context.fillStyle = "blue"; context.font = "bold 16px Arial"; context.fillText("Zibri", 100, 100); </script>

Answer: • var context = canvas.getContext("2d");

Question:* What is the role of the <dfn> element in HTML5?

Answer: • It is used to define a definition term.

Question:* Which of the following is a possible way to get fullscreen video played from the browser using HTML5?

Answer: • <video height="100%" width="100%">

Question:* Consider the following items of a <select> list: <option value="89">Item 1</option> <option value="90">Item 2</option> Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?

Answer: • 90

Question:* The following are valid use cases of client file/directory access in HTML5, except:

Answer: • Use of the HTML5 File API

Question:* Which of the following are the valid values of the <a> element's target attribute in HTML5?

Answer: • _blank

Question:* How does a button created by the <button> tag differ from the one created by an <input> tag?

Answer: • A button tag can include images as well.

Question:* Which method of HTMLCanvasElement is used to represent image of Canvas Element?

Answer: • toDataURL()

Question:* Can we store JavaScript Objects directly into localStorage?

Answer: • No

Question:* When does the ondragleave mouse event get fired in HTML5?

Answer: • It gets fired when an element leaves a valid drop target.

Question:* Once an application is offline, it remains cached until the following happens (select all that apply):

Answer: • The manifest file is modified.

Question:* What is the internal/wire format of input type="date" in HTML5?

Answer: • YYYY-MM-DD

Question:* Which of the following is not a valid syntax for the <link> element in HTML5?

Answer: • <link rev="stylesheet" href="abc.css" type="text/css" target="_parent">

Question:* What does P2P streaming mean when web applications establish a P2P HTTP connection using HTML?

Answer: • It means that streaming of a voice/video frame is direct, without using any server between them.

Question:* Which of the following will detect when an HTML5 video has finished playing?

Answer: • var video = document.getElementsByTagName('video')[0]; video.onended = function(e) { }

Question:* What is the difference between Server-Sent Events (SSEs) and WebSockets in HTML5?

Answer: • WebSockets can perform bi-directional (client-server and vice versa) data transfers, while SSEs can only push data to the client/browser.

Question:* Which of the following methods can be used to estimate page load times?

Answer: • Using the Navigation Timing JavaScript API.

Question:* Which of the following are valid ways to associate custom data with an HTML5 element?

Answer: • <tr class="foo" data-id-type="4">

Question:* How can an HTML5 canvas size be changed so that it fits the entire window?

Answer: • <script type="text/javascript"> function resize_canvas(){ canvas = document.getElementById("canvas"); if (canvas.width < window.innerWidth) { canvas.width = window.innerWidth; } if (canvas.height < window.innerHeight) { canvas.height = window.innerHeight; } } </script>

Question:* Which method of the HTMLCanvasElement is used to represent an image of a canvas element?

Answer: • toDataURL

Question:* Which of the following is the correct way to store an object in localStorage? var obj = { 'one': 1, 'two': 2, 'three': 3 };

Answer: • localStorage.setItem('obj', JSON.stringify(obj));

Question:* Assuming that some text needs to be written on an HTML5 canvas, select a replacement for the commented line below: <canvas id="e" width="200" height="200"></canvas> <script> var canvas = document.getElementById("e"); //insert code here context.fillStyle = "blue"; context.font = "bold 16px Arial"; context.fillText("Zibri", 100, 100); </script>

Answer: • var context = canvas.getContext("2d");

Question:* Which of the following code is used to prevent Webkit spin buttons from appearing on web pages?

Answer: • input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

Question:* Which of the following will restrict an input element to accept only numerical values in a text field?

Answer: • <input type="text" pattern="[0-9]*" />

Question:* Which of the following is the correct way to display a PDF file in the browser?

Answer: • <object type="application/pdf" data="filename.pdf" width="100%" height="100%"/>

Question:* Which of the following is the best method to detect HTML5 Canvas support in web browsers?

Answer: • !!window.HTMLCanvasElement

Question:* Which media event is triggered when there is an error in fetching media data in HTML5?

Answer: • onstalled

Question:* Which of the following is the correct way to check browser support for WebSocket?

Answer: • console.log(window.WebSocket ? 'supported' : 'not supported');

Question:* Which of the following video file formats are currently supported by the <video> element of HTML5?

Answer: • MPEG 4

Question:* Which of the following shows correct use of client-side data validation in HTML5, on username and password fields in particular?

Answer: • <input name="username" required /> <input name="pass" type="password" required/>

Question:* Which of the following is not a valid attribute for the <video> element in HTML5?

Answer: • disabled

Question:* Consider the following JavaScript code: var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); var img=document.getElementById("img"); Which method will correctly draw an image in the x=10, y=10 position?

Answer: • ctx.drawImage(img,10,10);

Question:* Which of the following is the correct way to store an object in a localStorage?

Answer: • localStorage.setItem('testObject', JSON.stringify(testObject))

Question:* How can audio files be played in HTML5? var sound = new Audio("file.wav");

Answer: • sound.play();

Question:* Which of the following is the correct way to play an audio file in HTML5?

Answer: • <audio controls> <source src="file.ogg" type="audio/ogg"> <source src="file.mp3" type="audio/mpeg"> </audio>

Question:* Which HTML5 doctype declarations are correct?

Answer: • <!DOCTYPE html>

Question:* 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?

Answer: • <a href="mailto:webmaster@xcompany.com">webmaster</a>

Question:* Which of the following are sample use cases for HTML5 web workers?

Answer: • All of these.

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

Answer: • onemptied

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

Answer: • autocomplete

Question:* Which of the following HTML5 features is capable of taking a screenshot of a web page?

Answer: • Canvas

Question:* Which of the following are true about the ARIA role attribute in HTML5?

Answer: • The attribute must have a value that is a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.

Question:* Which of the following video tag attributes are invalid in HTML5?

Answer: • pause

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

Answer: • True

Question:* Which of the following statements are correct with regard to the <hr> and <br> elements of HTML5?

Answer: • The <hr> element is used to insert the horizontal line within the document and the <br> element is used to insert a single line break.

Question:* The following link is placed on an HTML webpage: <a href="http://msdn.com/" target="_blank"> MSDN </a> What can be inferred from it?

Answer: • It will open the site msdn.com in a new window.

Question:* Which following are valid default values for the <input type="date"> HTML5 element?

Answer: • 2013-05-30

Question:* True or false: JavaScript objects can be stored directly into localStorage.

Answer: • False

Question:* What is the limit to the length of HTML attributes?

Answer: • There is no limit.

Question:* Which of the following examples contain invalid implementations of the ampersand character in HTML5?

Answer: • foo &0; bar

Question:* Which is the standard method for clearing a canvas?

Answer: • context.clearRect ( x , y , w , h );

Question:* Which of the following <link> attributes are not supported in HTML5?

Answer: • rev

Question:* In HTML5, 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>

Answer: • button

Question:* Which of the following attributes gets hidden when the user clicks on the element that it modifies? (Eg. hint text inside the fields of web forms)

Answer: • placeholder

Question:* Which event is fired when an element loses its focus in an HTML5 document?

Answer: • onblur

Question:* What is the purpose of the <q> element in HTML5?

Answer: • It is used to define the start of a short quotation.

Question:* Consider the following items of a <select> list: <option value="89">Item 1</option> <option value="90">Item 2</option> Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?

Answer: • 90

Question:* Which of the following is the best method to store an array in localStorage?

Answer: • var names = []; names[0] = prompt("New member name?"); localStorage["names"] = JSON.stringify(names); var storedNames = JSON.parse(localStorage["names"]);

Question:* Blockquote tags are:

Answer: • valid HTML5 mark-up

Question:* The canvas element:

Answer: • works in conjunction with JavaScript

Question:* The <canvas> element is new to HTML5 and allows you to...

Answer: • draw graphics on a web page using JavaScript APIs.

Question:* Do all web browsers support all HTML5 features equally?

Answer: • No

Question:* What does the following code do: <input type="text" name="user_name" autofocus="autofocus" />?

Answer: • The browser will automatically give the user_name field focus when the page loads.

Question:* Which of the following is correct?

Answer: • HTML5 describes the content of a page while CSS defines style rules.

Question:* Which browser does NOT support SSE (Server sent events)

Answer: • Internet Explorer

Question:* HTML5 was partially created by WHATWG and:

Answer: • W3C

Question:* What does the <nav> element represent?

Answer: • a section of a page that links to other pages or to parts within the page.

Question:* To limit the length of input in a form field use:

Answer: • maxlength

Question:* What is the minimal way to define the character set with meta tag?

Answer: • <meta charset="UTF-8">

Question:* Which tag is able to render a graphic image?

Answer: • <img>

Question:* What is the standard code to create a table row with "1" in first cell and "2" in second cell?

Answer: • <table><tr><td>1</td><td>2</td></tr></table>

Question:* The Web workers API allows you to...

Answer: • all of these

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

Answer: • True

Question:* What is the purpose of <em> tags?

Answer: • To define emphasized text

Question:* The <progress> element is capable of an indeterminate progress.

Answer: • True

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

Answer: • True

Question:* The meter element are measurements that are part of a scale with minimum and maximum values.

Answer: • True

Question:* Geolocation is much more accurate for devices with GPS, like iPhone

Answer: • True

Question:* id stands for:

Answer: • unique identifier

Question:* HTML5 comments look like this:

Answer: • <!-- -->

Question:* What does SVG stand for?

Answer: • Scalable Vector Graphics

Question:* 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

Answer: • True

Question:* What does the <header> tag define?

Answer: • a header for a document or section

Question:* The <section> tag is allowed to define:

Answer: • all of these

Question:* What attributes do you assign to <audio> tags?

Answer: • All of these

Question:* When do you use an <a> tag?

Answer: • To define a hyperlink

Question:* Which of the following are native date pickers that are defined in HTML5?

Answer: • all of these

Question:* Which HTML5 element should be used to group navigation links?

Answer: • <nav>

Question:* What is required to run the Geolocation API on your device?

Answer: • A browser which supports HTML5

Question:* What is an <i> element most often used for?

Answer: • To define italic text

Question:* The canvas element is used to:

Answer: • draw images on a web page

Question:* Can you drag and drop in HTML5?

Answer: • Yes

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

Answer: • True

Question:* HTML5 was created to be:

Answer: • all of these.

Question:* <!doctype html> replaces which doctypes?

Answer: • All of these

Question:* <button> is a:

Answer: • valid HTML5 tag

Question:* What does the <mark> tag define?

Answer: • marked/highlighted text

Question:* What attributes do you assign to <form> tags?

Answer: • All of these

Question:* Some of the benefits of HTML5 directly effect...

Answer: • all of these

Question:* How many <nav> tags can you have in a html5 document?

Answer: • any number

Question:* What is the correct tag for command?

Answer: • <command>

Question:* Examples of usage for the <article> element are

Answer: • all of these

Question:* What is the correct doctype in html 5?

Answer: • <!DOCTYPE HTML>

Question:* Click on the element below that is displayed as a list item?

Answer: • <li>

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

Answer: • True

Question:* Which tag is used to display graphics?

Answer: • <canvas>

Question:* How many footers can you have in a html 5 document?

Answer: • any number

Question:* Which HTML5 tag would most semantically group a page title (in an H1 tag) and tagline (in an H2 tag)?

Answer: • <hgroup>

Question:* Max specifies...

Answer: • the maximum value allowed

Question:* Which tag defines a command button that a user can invoke?

Answer: • <command>

Question:* True of false: older browsers ignore HTML5 constructs?

Answer: • True

Question:* The Geolocation API guarantees that the returned location coordinates will be accurate to within:

Answer: • No guarantee is given that the API returns the device's actual location.

Question:* Which of these is not a valid HTML5 tag?

Answer: • baseline

Question:* Adding height and width to img elements can...

Answer: • all of these.

Question:* When you format images with <img> tags, which attribute do you not use?

Answer: • All of these

Question:* SVG graphics do NOT lose any quality if they are zoomed or resized

Answer: • True

Question:* Which of the following are valid element types for input fields?

Answer: • All of them

Question:* Which of the next tags is new in HTML5?

Answer: • All of them

Question:* What is the purpose of <svg> tags?

Answer: • To draw pictures or text using Scalable Vector Graphics

Question:* The <frame> element is an obsolete element in HTML5.

Answer: • True

Question:* What is the tag used to define attribute values for one or more columns in a table?

Answer: • <col>

Question:* <meta charset="utf-8" /> should be placed...

Answer: • right after the opening <head> tag.

Question:* What is the use of <kbd>?

Answer: • Defines keyboard input

Question:* Which tag is considered an HTML5 tag?

Answer: • <header>

Question:* What does the <hgroup> tag do?

Answer: • Groups a set of <h1> to <h6> elements when a heading has multiple levels

Question:* SVG is used to define what?

Answer: • vector-based graphics for the Web

Question:* What does WHATWG stand for?

Answer: • Web hypertext application technology working group

Question:* Which tag would semantically separate a section of photos from a section of videos?

Answer: • <section>

Question:* Integration of what type of content allows you to specify graphics in an xml format?

Answer: • SVG

Question:* How do you make an input tag checked? You add:

Answer: • checked="checked"

Question:* The process of giving all elements in a page a margin of 0 and padding of 0 is called a:

Answer: • reset

Question:* <span> is no longer used in HTML5:

Answer: • False

Question:* Which of the below is not a html 5 element

Answer: • <frame>

Question:* Which is the correct DOCTYPE for HTML5?

Answer: • <!DOCTYPE html>

Question:* HTML5 form validation will validate all specified field types and...

Answer: • required fields.

Question:* What is the proper syntax for adding placeholder text to a text input?

Answer: • <input placeholder=”Placeholder text” />

Question:* What is Canvas?

Answer: • All of these

Question:* What is the correct email input tag?

Answer: • <input type="email" name="user_email" />

Question:* 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)?

Answer: • <article>

Question:* <nav> is an HTML5:

Answer: • element.

Question:* Which tag specifies the caption inside a figure element?

Answer: • <figcaption>

Question:* What Is the correct html 5 doc type declaration ?

Answer: • <!DOCTYPE html>

Question:* Which script is useful in rendering dynamic images in canvas?

Answer: • <javascript>

Question:* Which HTML tag should be used to contain each individual post on a page of blog posts?

Answer: • <article>

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

Answer: • True

Question:* Which tag is used for describing details about a document?

Answer: • <details>

Question:* Which of the following should be used for entering urls?

Answer: • <input type="url" name="user_url" />

Question:* The browser remembers data from a form and outputs it using:

Answer: • autocomplete

Question:* This tag is now deprecated:

Answer: • all of these

Question:* What can HTML 5 forms NOT do?

Answer: • completely replace server side form validation

Question:* What are/is the most important differences between XHTML and HTML?

Answer: • All of them

Question:* What attribute should you not assign to <img> tags?

Answer: • align

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

Answer: • False

Question:* Which of the following tags is not supported in HTML5?

Answer: • <frame>

Question:* video/ogg, video/mp4 and video/webm are all examples of:

Answer: • MIME types

Question:* Which is the correct tag used for input fields, that contain a numeric value?

Answer: • <input type="number" name="points" min="1" max="10" />

Question:* HTML5 offers two new objects which use JavaScript APIs for storing local data. These new objects are...

Answer: • localStorage and sessionStorage.

Question:* A button that empties the form for the user to begin again is created with:

Answer: • <input type="reset"/>

Question:* What does the <details> tag do?

Answer: • Defines additional details that the user can view or hide

Question:* Using HTML5, what would be the most semantic way to group a section of ads?

Answer: • <aside>

Question:* An example of a new HTML5 element would be:

Answer: • <audio>

Question:* In chrome, setting autofocus in an input field will cause the field to _____ when the user clicks into it.

Answer: • light up

Question:* Which of the following are new elements in HTML5 which provide improved document structure?

Answer: • both of these

Question:* Aside tags are useful for...

Answer: • secondary content

Question:* Does HTML5 use new tags not supported by HTML4?

Answer: • Yes

Question:* When using an <input type="email"> field many modern browsers will display a tool-tip warning for easier client-side form validation.

Answer: • True, but this should not replace server-side validation.

Question:* The <figure> and <figcaption> elements were primarily added to the specification for what purpose?

Answer: • To offer a semantically correct markup for displaying image captions

Question:* How would an older (non-HTML5) browser handle an <input type=”email” /> element?

Answer: • Display it as a text input

Question:* Which of the following tags is not supported by HTML5?

Answer: • <frame>

Question:* What does the autofocus attribute do in HTML5?

Answer: • Specifies when an <input> should automatically get when the page loads.

Question:* A HTML5 SSE allow a web page to _________

Answer: • automatically gets updates from a server

Question:* Which of the following can be a potential section in an application cache manifest file?

Answer: • All options can be sections

Question:* Which tag can be used inside the <details> tag?

Answer: • <summary>

Question:* What is the correct tag for independent and self-contained content?

Answer: • <article>

Question:* Search is a valid input type.

Answer: • True

Question:* What attribute(s) would you add to an <input type=”number” /> to set the maximum and minimum value for that input?

Answer: • min=”1” max=”10”

Question:* To make a form submit you can use:

Answer: • <button type='submit'>

Question:* A placeholder attribute in an input field...

Answer: • sets default gray helper text for the field.

Question:* <object> defines an:

Answer: • embedded object

Question:* 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>

Answer: • Yes, it seems correct.

Question:* You can force a scroll bar onto a page by using:

Answer: • CSS overflow

Question:* The element <basefont> is not a current element in HTML5

Answer: • True

Question:* The element <noframes> is a current element in HTML5.

Answer: • False

Question:* What is Application Cache?

Answer: • Enables a web application to cache itself and make it readable without an internet connection.

Question:* The code for text area is:

Answer: • <textarea>words</textarea>

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

Answer: • False

Question:* The _____ attribute specifies the elements text directionality.

Answer: • dir

Question:* What attribute makes a radio button or checkbox input selected?

Answer: • checked="checked"

Question:* The action attribute in a <form> element:

Answer: • specifies the URL of the service that will handle the submitted data.

Question:* Sections encapsulate...

Answer: • any valid mark-up or content

Question:* A media element that allows for dynamic, scriptable rendering of images is:

Answer: • Canvas

Question:* What is the correct HTML element used for different types of output, like calculations or script output?

Answer: • <output></output>

Question:* To make radio buttons work as a group you give them the same_____.

Answer: • name

Question:* Which tag would you use in the <HEAD> to set the document character encoding to UTF-8?

Answer: • <meta charset="utf-8" />

Question:* Which method is used to add a state to the browser's list of history states?

Answer: • history.pushState

Question:* The element <big> is a current element in HTML5.

Answer: • False

Question:* The <time> element:

Answer: • Defines a date/time.

Question:* How do you make an element draggable ?

Answer: • <img draggable="true" />

Question:* What type of tag is not supported by HTML5?

Answer: • <font>

Question:* The placeholder attribute:

Answer: • allows the developer to define the text that will appear in a textbox control.

Question:* <video> tags display video the same way in each browser.

Answer: • False

Question:* An input with a type hidden will be ignored by the browser.

Answer: • False

Question:* Minimizing HTML code gets rid of:

Answer: • whitespace

Question:* What is the new Audio Video file format sponsored by Google for use in across all HTML5 supported browsers

Answer: • .WebM

Question:* Tables are now obsolete in HTML5.

Answer: • False

Question:* What do <video> and <audio> require (for users)?

Answer: • a modern web browser with good HTML 5 support, and at least one codec offered by the video/audio

Question:* <video> tags are used for...

Answer: • embedded movies

Question:* Which of the following tags is supported by HTML5?

Answer: • <time>

Question:* The tag to specify illustrations, diagrams, photos is?

Answer: • <figure>

Question:* The <!DOCTYPE> declaration in HTML5 is?

Answer: • <!DOCTYPE html>

Question:* The HTML5 element used to draw graphics via scripting is?

Answer: • <canvas>

Question:* The tag used to define navigation links is?

Answer: • <nav>

Question:* The method to draw a rectangle filled with current fill style is

Answer: • fillRect(x,y,width,height)

Question:* The element to specify a list of predefined options for input controls is?

Answer: • <datalist>

Question:* The element <basefont> is a current element in HTML5

Answer: • False

Question:* Which of the following is a valid attribute in HTML5?

Answer: • data-count="4"

Question:* Which of the following is NOT a benefit offered by using application cache?

Answer: • Security: data stored within the cache is protected from external access.

Question:* The <strike> element is valid HTML5.

Answer: • False. It's obsolete.

Question:* Which is the correct <canvas> tag declaration?

Answer: • <canvas id="myCanvas" width="800" height="600" > <p>Your browser is sooooo old! Download a modern one now! </p> </canvas>

Question:* Progress bars are supported natively using the...

Answer: • <progress> element

Question:* Which of the following is the starting point of the line to draw straight line on a canvas?

Answer: • moveTo(x,y)

Question:* The built-in HTML5 object to draw lines, circles, text, rectangles etc. is?

Answer: • getContext("2d")

Question:* What is the minimum needed to create a HTML5 document?

Answer: • <!DOCTYPE html> <title>Title of the document</title>

Question:* Which is not an example of media types?

Answer: • media="mobile"

Question:* What is a <b> tag used for?

Answer: • To define bold text

Question:* What will happen if you exceed the allotted local storage space for your origin?

Answer: • A “QUOTA_EXCEEDED_ERR” will be thrown

Question:* What is the <wbr> tag used for?

Answer: • Defines a possible line-break

Question:* Which is not a valid tag?

Answer: • <location>

Question:* What is the amount of local storage space per origin recommended by the W3C?

Answer: • 5 megabytes

Question:* In which order would these cache manifest events be fired?

Answer: • checking, downloading, progress, cached

Question:* Select tags encapsulate:

Answer: • option tags

Question:* Using HTML5, syntax errors will be treated uniformly by all conforming browsers and other user agents.

Answer: • True

Question:* When is the popstate event on a window dispatched?

Answer: • Everytime the active history entry changes.

Question:* According to the W3C HTML5 specification, which one of these may the <time> element NOT represent?

Answer: • A length of time in milliseconds

Question:* Which of the following defines a visible heading for a <details> element?

Answer: • <summary>

Question:* Which three properties are guaranteed to be provided as part of a geolocation position object?

Answer: • latitude, longitude, accuracy

Question:* What is the mime type for a manifest file?

Answer: • text/cache-manifest

Question:* Files listed under this header will be cached after they are downloaded.

Answer: • CACHE MANIFEST

Question:* The <canvas> element is a:

Answer: • Resolution-dependent bitmap canvas

Question:* Auto buffering in HTML5 has been replaced with?

Answer: • Preload

Question:* The <tt> element:

Answer: • has been marked obsolete in HTML5 but continues to be valid

Question:* 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?

Answer: • origin

Question:* Which tag is not officially supported in HTML5?

Answer: • All of these tags

Question:* The <frameset> element is part of HTML5.

Answer: • False

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

Answer: • False

Question:* In an input field, a telephone number should have which type?

Answer: • tel

Question:* What would be a valid input for this field: <input type="number" min="0" max="10" step="2" default="6"> ?

Answer: • 2

Question:* Which attributes are supported on the canvas element (among others)?

Answer: • id, width and height

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

Answer: • False

Question:* What is a valid manifest file extension?

Answer: • All of these

Question:* Which tag is used for an introduction of a document or a section?

Answer: • <header>

Question:* 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.

Answer: • <article>

Question:* Is it possible to use the camera with the javascript-upwork-odesk-elance-test.html' title='javascript test answers of upwrok 2016'>javascript html5 api?

Answer: • Yes, using certain browser configuration and the use of media handling code in JS

Question:* Which can stand alone in terms of content?

Answer: • <article>

Question:* <applet> is an element of HTML5?

Answer: • False

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

Answer: • False

Question:* Which of the following tags is used to define multiple media resources for <video> or <audio>?

Answer: • <source>

Question:* Which of the following is NOT a valid value for the “type” attribute of an <input> element?

Answer: • name

Question:* The <header> element should not be used within which element?

Answer: • Footer

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

Answer: • step

Question:* Forms have been greatly improved because...

Answer: • more can be handled by the browser

Question:* In HTML5 you may use the "align" attribute to align <input> elements

Answer: • false

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

Answer: • fallback:

Question:* When combined with the <figcaption> element, we can now semantically associate captions with their image counterparts with what element?

Answer: • <Figure>

Question:* The title attribute is used in:

Answer: • all of these.

Question:* What does the meter tag define?

Answer: • A scalar measurement within a known range

Question:* The onhashchange event only dispatches when

Answer: • the hash portion of the current URL changes.

Question:* Which function is used to obtain geolocation information?

Answer: • navigator.geolocation.getCurrentPosition

Question:* On which object does the browser fire cache manifest events?

Answer: • window.applicationCache

Question:* The element <dir> is not a current element in HTML5.

Answer: • True

Question:* What are the two new objects for storing data on the client in HTML 5?

Answer: • localStorage and sessionStorage

Question:* Which tag's positioning is independent of the main flow of the document?

Answer: • <figure>

Question:* Within a fieldset, you can give a name to a group of input fields with:

Answer: • <legend>

Question:* After checking all files in the cache manifest for updates, and finding NO updates, which event will the browser fire?

Answer: • noupdate

Question:* Using HTML5, what would be the most semantic tag for highlighting a few words inside a <p> element?

Answer: • <mark>

Question:* What is a new attribute for both <form> and <input>?

Answer: • autocomplete

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

Answer: • False

Question:* Click on the element below that does NOT exist in HTML5.

Answer: • <ld>

Question:* Which of the following mouse events are used when handling a drag/drop event?

Answer: • ondragenter

Question:* Which of the next attributes was added to the anchor tag in HTML5?

Answer: • media

Question:* <rt> is used to define:

Answer: • an explanation/pronunciation of characters

Question:* What MIME-type must a cache manifest be served with?

Answer: • text/cache-manifest

Question:* What is the proper syntax to make a text input autofocus?

Answer: • <input autofocus>

Question:* Which HTML5 tag would be best for wrapping the date of a blog post?

Answer: • <time>

Question:* What is a Web Worker?

Answer: • JavaScript script running in the background of the page

Question:* Which of the following is a current element in HTML5?

Answer: • <output>

Question:* Which tag has semantic significance?

Answer: • <strong>

Question:* Which function is used to swap out old cached resources for updated cache resources?

Answer: • window.applicationCache.swapCache

Question:* What is the URL of W3C Markup Validation Service?

Answer: • http://validator.w3.org

Question:* Which of the following is NOT a valid way to store a value in local storage?

Answer: • document.localStorage[“key”] = “value”;

Question:* Which method lets you access the canvas to start drawing on it?

Answer: • getContext();

Question:* What type of <input> doesn't support the attribute maxlength?

Answer: • Number

Question:* Which is true about the placeholder attribute of <input> elements?

Answer: • It cannot contain HTML or CSS

Question:* Which of the elements below is displayed inline by default?

Answer: • <textarea>

Question:* What tag isolates a part of text that might be formatted in a different direction from other text outside it

Answer: • <bdi>

Question:* Which event will be fired when the user presses the back button?

Answer: • popstate

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

Answer: • False

Question:* Which section of a cache manifest file specifies files which should not be cached?

Answer: • NETWORK

Question:* Files listed under this header require a connection to the server, and will never be cached.

Answer: • Network

Question:* <rp> is used to:

Answer: • Define what to show in browsers that do not support ruby annotations

Question:* After the browser fires an `updateready` event, which of the following is true?

Answer: • The new cache resources are ready, but old cache resources are still being used

Question:* Which attribute should be used to indicate that a <time> element represents the date of a blog post?

Answer: • pubdate

Question:* Which of the following is incorrect value provided to "rel" attribute of Anchor Tag ?

Answer: • previous

Question:* If IE8 doesn't recognize an element (such as <article>), what will it do with that element?

Answer: • Display it as an empty inline element with no children

Question:* What is the proper syntax for specifying a cache manifest?

Answer: • <html manifest=”/cache.manifest”>

Question:* A wrapper around the html5lib library for sanitizing HTML is called a:

Answer: • html-whitelist

Question:* What does the stroke() method of the canvas context API do?

Answer: • Assigns a color to the line being drawn and makes it visible on the canvas

Question:* Which of these is NOT one of the five different element types?

Answer: • Raw data elements

Question:* Which of the next video formats is not entirely available for Firefox Browsers?

Answer: • MP4

Question:* 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?

Answer: • downloading

Question:* Which of the following html tag isn't supported in HTML5?

Answer: • <acronym>

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

Answer: • False

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

Answer: • False

Question:* Which of the following is not a valid attribute for the <script> element?

Answer: • scope

Question:* What attributes do you assign to <map> tags?

Answer: • Name

Question:* Is this the preferred method of using the cite tag in HTML5? <cite>John Doe</cite>

Answer: • No

Question:* On which object will the browser fire history events (such as when the back button is pressed)?

Answer: • window

Question:* What are the valid properties of the options object that may be passed to navigator.geolocation.getCurrentPosition?

Answer: • enableHighAccuracy, timeout, maximumAge

Question:* What should be the value of the 'rel' attribute for a <LINK> element that specifies an RSS feed?

Answer: • alternate

Question:* Which of the following is NOT a valid attribute of the <time> element?

Answer: • date

Question:* <A href="http://mysite.com"> creates an HTML...

Answer: • link element.

Question:* True or False? A <!DOCTYPE> declaration must appear at the very top of an HTML file.

Answer: • True

Question:* Which HTML tag creates the largest header text size?

Answer: • <h1>

Question:* What is the default character encoding in HTML5?

Answer: • UTF-8

Question:* True or False: Based on general best practices, it is better to set font attributes directly in HTML rather than in CSS.

Answer: • False

Question:* True or False? The "charset" attribute can be applied to only one <meta> element per HTML document.

Answer: • True

Question:* How does a (modern) web browser interpret an unknown HTML element (e.g. <blabla>example</blabla>)?

Answer: • The tag is treated as a regular block element (much like a <div>).

Question:* What does an HTML doctype do?

Answer: • All of these answers are correct.

Question:* What are/is the most important difference between XHTML and HTML?

Answer: • All of them

Question:* Which of the following is a valid doctype?

Answer: • All of these are valid doctypes.

Question:* Which HTML specification contains definitions for the elements: <article>, <nav>, <header> and <footer>?

Answer: • HTML5

Question:* What does the acronym ARIA stand for?

Answer: • Accessible Rich Internet Applications

Question:* Which of the following will set the text color to #FF0000?

Answer: • All of these

Question:* What is the purpose of the HTML <samp> element?

Answer: • It's used to markup example output from a computer program.

Question:* What is the primary purpose of WAI-ARIA Landmark roles?

Answer: • Landmark roles define regions of a web page intended to be used as navigational aids.

Question:* What is the URL of W3C Markup Validation Service?

Answer: • http://validator.w3.org

Question:* As of HTML 4.01, which of the following attributes should no longer be applied to <a> elements?

Answer: • datasrc

Question:* The <header> element should be used to markup

Answer: • The title and/or sub-title of any content block

Question:* Which of the following is NOT an ARIA Landmark role?

Answer: • article

Question:* What is the purpose of this HTML statement? <SCRIPT type="text/javascript-upwork-odesk-elance-test.html' title='javascript test answers of upwrok 2016'>javascript">

Answer: • To define JavaScript code

Question:* Which element isn't a block level element?

Answer: • <base>

Question:* Which HTML tag is used to include an external stylesheet?

Answer: • <LINK>

Question:* Which element represents a caption for the content of its parent <fieldset> ?

Answer: • <legend>

Question:* Which of the following HTML tags is used to input more than one line of text?

Answer: • <TEXTAREA></TEXTAREA>

Question:* In order to create a list using lowercase letters one would use...

Answer: • <ol type="a">

Question:* Increasing the cellpadding value will what ?

Answer: • Increase the distance between cell and content

Question:* What attribute do you add to a checkbox input field to show that it is initially checked?

Answer: • checked="checked"

Question:* <AREA> is the HTML element tag for

Answer: • an area inside an image-map

Question:* What does the X in XHTML stand for?

Answer: • eXtensible

Question:* The <base> element must be contained within the

Answer: • <head> element.

Question:* Which HTML attribute is used to set the space between the cell wall and the cell content in an HTML <TABLE> element?

Answer: • cellpadding

Question:* Which attribute allows you to add descriptive text to a table?

Answer: • caption

Question:* Which HTML form attribute indicates how the form-data should be encoded?

Answer: • enctype

Question:* What is the purpose of the HTML <COLGROUP> tag?

Answer: • To group columns in a table for formatting

Question:* Why would you use an HTML <pre> tag?

Answer: • To preserve the exact spacing of the text

Question:* Which of these elements does NOT exist?

Answer: • <lt>

Question:* Which HTML element will NOT create a line break by default?

Answer: • <SPAN>

Question:* How do you make it so that someone can mail me by just clicking on text?

Answer: • <A HREF="mailto:support@abc.com">E-mail me</A>

Question:* The right syntax to insert Line Break in HTML is:

Answer: • <br/>

Question:* Tags and text that do not show directly on the page are placed where?

Answer: • Head

Question:* True or False: <script> tags may only go in between the <head> tags

Answer: • False

Question:* Which HTML tag do you use to format text like computer code?

Answer: • <CODE>

Question:* What symbol differentiates most opening tags from closing tags?

Answer: • /

Question:* What does the following HTML statement create? <A name="help">Help Section</A>

Answer: • an anchor link

Question:* What will this HTML statement create? <INPUT type="IMAGE">

Answer: • An image that acts like a submit button.

Question:* Which HTML tag is NOT valid in a Strict HTML 4.01 doctype?

Answer: • <applet>

Question:* What is a deprecated HTML element or attribute?

Answer: • An outdated feature that may become obsolete in future versions of HTML.

Question:* Which <form> element attribute is used to control where the input values are sent?

Answer: • action

Question:* Which of the following will display the ampersand(&) on an HTML page?

Answer: • &amp;

Question:* When is the content of a table shown?

Answer: • After the table is loaded

Question:* What does the following HTML statement do? <META name="robots" content="NOINDEX" />

Answer: • Tells search engines not to index the page.

Question:* Why should you specify a background color if you are using an image for the actual background of your page?

Answer: • The background color will be shown until the image loads

Question:* Which attribute is used to specify an inline style for an HTML element?

Answer: • style

Question:* How do you create a submit button on an HTML form?

Answer: • <P> <INPUT type= "submit" value="Send"> </P>

Question:* An HTML document must contain unique values of which attribute?

Answer: • id

Question:* Which of these is not a <img> attribute?

Answer: • size

Question:* Which element is NOT a <table> element?

Answer: • <tt>

Question:* Which of the following creates a valid HTML email link?

Answer: • <A href="mailto:info@smarterer.com">Email Link</A>

Question:* What is the primary difference between a DIV and a SPAN element?

Answer: • A DIV is used for block level elements and a SPAN is used for inline elements.

Question:* Which of the following HTML elements does NOT belong in the <HEAD> section of an HTML file?

Answer: • <H1>

Question:* Which HTML element can be used to draw graphics via scripting?

Answer: • <canvas>

Question:* What is the correct HTML tag for an inline frame?

Answer: • <IFRAME>

Question:* Which HTML element displays content from another page?

Answer: • <IFRAME>

Question:* Why would you use the HTML <DIV> tag?

Answer: • To format grouped block-elements with styles.

Question:* Which HTML tag contains the main visual content of an HTML document?

Answer: • <BODY>

Question:* Which attribute of an <a> tag can specify where it opens a link?

Answer: • target

Question:* To separate single list items use?

Answer: • <li> and </li>

Question:* What does <A href="#title2"> create?

Answer: • A hyperlink within a web page to an area named title2.

Question:* <a> and </a> are the tags used for what?

Answer: • Adding links to your page

Question:* To create a bulleted list use...

Answer: • <ul>

Question:* What is "HTTP" short for?

Answer: • HyperText Transfer Protocol

Question:* Which attribute would you use to specify how many columns an HTML table cell should span?

Answer: • colspan

Question:* Which HTML element defines a bullet-point list?

Answer: • <ul>

Question:* Which tag doesn't form a table or a container for table elements?

Answer: • <tt>

Question:* A <title> should appear in which element?

Answer: • <head>

Question:* Which organization defines the standards for the world wide web?

Answer: • W3C

Question:* Which HTML tag creates a horizontal line?

Answer: • <HR>

Question:* If the browser can't display the image, the value of which attribute is shown as text instead?

Answer: • alt

Question:* What must be the first element in an HTML page?

Answer: • <!DOCTYPE>

Question:* How can you create an e-mail link?

Answer: • <a href="mailto:123@gmail.com">

Question:* Which HTML element specifies page description, keywords and other information about the data?

Answer: • <META>

Question:* Which of the following is not a valid HTML element tag?

Answer: • <BLOG>

Question:* Which of the following sizes the width of a table to half of its containing object?

Answer: • <TABLE width="50%">

Question:* Which of the following tags will NOT be found in the <head> section?

Answer: • <table>

Question:* Which HTML tag is used to group block elements for styling purposes?

Answer: • <DIV>

Question:* HTML stands for:

Answer: • Hyper Text Markup Language

Question:* What does the HTML <SUB> tag create?

Answer: • subscript text

Question:* Which HTML statement creates an <INPUT> element for a single line of text?

Answer: • <INPUT type="text" id="firstname">

Question:* HTTP stands for...

Answer: • Hypertext Transfer Protocol

Question:* To add rows to your tables use which tags?

Answer: • <tr> and </tr>

Question:* TRUE or FALSE? A <span> defines a section in a document (inline).

Answer: • TRUE

Question:* Which of the following represents an HTML comment?

Answer: • <!-- This is a comment -->

Question:* Which of the following HTML statements will display an image in the web browser?

Answer: • <IMG src="/myimages/flowers.jpg" alt="Roses">

Question:* When are the HTML tags <TH> and <TD> used?

Answer: • When creating tables

Question:* Which HTML target attribute value is used to tell the browser to load the document in a new, unnamed window?

Answer: • _blank

Question:* The video and audio HTML elements for media playback are available in...

Answer: • HTML 5

Question:* Which of the following HTML statements correctly displays a table row?

Answer: • <TR><TD></TD></TR>

Question:* What is the primary use for HTML?

Answer: • Creating basic elements of a website.

Question:* How can you scale an image on a web page?

Answer: • By defining width and height attributes of the <IMG> tag

Question:* Which of the following will right-align the content inside a table-cell?

Answer: • <td align="right">

Question:* Which of the following is a correct value for the HTML <form> method attribute?

Answer: • all of these

Question:* Where can we place the background color tag in your page?

Answer: • <body>

Question:* When do you use an HTML <i> tag?

Answer: • To define italic text

Question:* Which attribute of the HTML <A> tag specifies the address of the destination link?

Answer: • href

Question:* How do you make a link to another web page?

Answer: • <a href="http://www.abc.com">Visit abc.com</a>

Question:* Which HTML tag do you use to create an ordered list?

Answer: • <OL>

Question:* TRUE or FALSE? A <div> defines a section in a document (block-level).

Answer: • TRUE

Question:* Which of the following HTML statements inserts a checkbox?

Answer: • <INPUT type="checkbox">

Question:* A web browser interprets every HTML tag until it finds

Answer: • </HTML>

Question:* Which HTML element makes text bold?

Answer: • <B>

Question:* Which HTML element allows authors to insert a frame within a block of text?

Answer: • <IFRAME>

Question:* What does this code render in the browser? <B><I>Text</I></B>

Answer: • Creates bold italic text

Question:* Where is a META tag placed?

Answer: • in the HEAD

Question:* HTML provides web designers with the means to...

Answer: • publish online documents with headings, text, tables, lists, and photos.

Question:* The HTML <HEAD> element can contain...

Answer: • All of these

Question:* What does this HTML statement create? <A HREF="http://microsoft.com">

Answer: • a link to a web page

Question:* Which tag is used for a paragraph block?

Answer: • <p>

Question:* which of the following HTML tag are used for mp3 file

Answer: • <embed height="50" width="100" src="horse.mp3">

Question:* True or false. <h1> is a heading bigger than <h3>

Answer: • True

Question:* CSS appears between which tags?

Answer: • <style> and </style>

Question:* What is the correct HTML and XHTML tag for inserting a line break?

Answer: • <br> and <br />

Question:* What does the HTML <A> tag create?

Answer: • hyperlink

Question:* To create an ordered list, use the the following HTML tag

Answer: • <OL>

Question:* Which tag will make the text bold?

Answer: • <strong>

Question:* Choose the tag that defines where the HTML document begins and ends:

Answer: • <HTML></HTML>

Question:* A simple HTML table consists of the <TABLE> element and...

Answer: • All of these

Question:* Which HTML element displays data in columns and rows?

Answer: • <TABLE>

Question:* Which of the following is an example of an HTML table row?

Answer: • <TR> <TH>This is a Table Row</TH> </TR>

Question:* Which of the following is the correct way to create an HTML link?

Answer: • <A href="/url">link</A>

Question:* Which of the following HTML elements appear last in an HTML page?

Answer: • </HTML>

Question:* Which of the following HTML statements inserts an image?

Answer: • <IMG src="image.jpg" alt="">

Question:* Which HTML tag starts the creation of a table?

Answer: • <TABLE>

Question:* Which attribute is required for the HTML <IMG> tag?

Answer: • src

Question:* What are the default extensions for an html document?

Answer: • .html and .htm

Question:* How would you set a page title in HTML ?

Answer: • <title>This is a page title</title>

Question:* What does HTML stand for?

Answer: • Hypertext Markup Language

Question:* How will you add an image into a web page?

Answer: • <img src="image.gif" height="200" width="200">

Question:* Which heading element is defined as the most important which usually displays the largest text?

Answer: • <H1>

Question:* Which HTML tag is used to reference Javascript files?

Answer: • <script>

Question:* Besides<B>, another way to make text bold is what?

Answer: • <strong>

Question:* Which HTML element italicizes text?

Answer: • <I>

Question:* Which HTML tag adds line breaks to a web page?

Answer: • <BR>

Question:* Which of the following is a correct HTML tag?

Answer: • All of these

Question:* Which of the following creates an HTML line break?

Answer: • <BR />

Question:* What is the correct HTML for creating a hyperlink?

Answer: • <a href="http://www.abc.com">abcTechnologies</a>

Question:* Which HTML tag is correct?

Answer: • <IMG src="1.jpg" />

Question:* What is the correct syntax for creating a hyperlink?

Answer: • <a href="http://smarterer.com">smarterer</a>

Question:* Which tag defines a paragraph?

Answer: • <p>

Question:* Which HTML tag do you use to add a video to your web page?

Answer: • None of these

Question:* Which of the following HTML tags is used to display an image?

Answer: • <IMG>

Question:* The <title> tag belongs where in your HTML?

Answer: • <head>

Question:* To change the size of an image in HTML use what?

Answer: • height and width

Question:* Gif and jpg are the two main types of what?

Answer: • images

Question:* HTML forms can contain:

Answer: • All of these

Question:* Which image type can you insert into an HTML document?

Answer: • All of these

Question:* Which HTML element will display the largest font size by default?

Answer: • <H1>

Question:* When do you use an HTML <B> tag?

Answer: • To define bold text

Question:* <A href="http://mysite.com"> creates an HTML...

Answer: • link element.

Question:* <I> is the HTML element for

Answer: • italics.

Question:* What does the HTML <P> tag define?

Answer: • paragraph

Question:* Which HTML tag do you use to put an image on a web page?

Answer: • <IMG>

Question:* What does <br /> do?

Answer: • It creates a line break.

Question:* Which of the following creates the largest HTML header text?

Answer: • <H1>

Question:* The correct file extension used for an HTML file is...

Answer: • .html

Question:* All HTML tags are enclosed in what ?

Answer: • <>

Question:* Which is an example of the correct syntax used to write HTML tags?

Answer: • <HTML>

Question:* Which of the following is not a valid html tag?

Answer: • <h7>

Question:* Which of these HTML tags represents the smallest heading?

Answer: • <H6>

Question:* <EM> is the HTML element for

Answer: • emphasized text.

Question:* In HTML, to add spaces to your text, you can use the

Answer: • &nbsp; entity

Question:* What of the following HTML tags is used for computer code text?

Answer: • <CODE>

Question:* What is the purpose of the <!DOCTYPE> declaration?

Answer: • Notify the browser which version of HTML the page uses.

Question:* Which of these is not a HTML tag?

Answer: • <con>

Question:* Which HTML tag do you use to add a horizontal rule?

Answer: • <HR>

Question:* Which syntax closes a table cell?

Answer: • </td>

Question:* What element specifies a row in a HTML table?

Answer: • tr

Question:* Which tag do you use in the beginning of an HTML document?

Answer: • <HTML>

Question:* What does an example of a hexadecimal color code look like?

Answer: • #990000

Question:* How can you open a link in a new browser window?

Answer: • <a href="url" target="_blank">

Question:* True or False: <meta> tags should go between the <body> tags.

Answer: • False

Question:* Which of the following would be used in table row coding?

Answer: • <TR>

Question:* Which of the following HTML elements denotes the name of the page?

Answer: • <TITLE>

Question:* True or False: Checkboxes are used to select multiple choices whereas with radio boxes only one choice can be selected when the submit button is clicked.

Answer: • True

Question:* <BR> is the HTML element for

Answer: • inserting a single line break.

Question:* What does Web Hosting mean?

Answer: • storing your website on a public server

Question:* To add real spaces to your text, which character entity can you use?

Answer: • &nbsp;

Question:* Which tag is used to insert images into your web page?

Answer: • img

Question:* Which attribute gives a unique identity for an HTML element?

Answer: • id

Question:* Which HTML tag creates a hyperlink?

Answer: • <A>

Question:* Which HTML element is typically used for positioning block-elements?

Answer: • <DIV>

Question:* What is a use for the class attribute in HTML?

Answer: • to select a class in a style sheet

Question:* How many values can the class attribute have per HTML element?

Answer: • unlimited

Question:* <__________________________ content="A description of your page"> Fill in the blank to create a tag that would give a description of your page.

Answer: • meta name="description"

Question:* Which of the following is an example of an HTML hidden field?

Answer: • <INPUT type="hidden" />

Question:* Which answer best describes the following HTML? <OL><LI>1</LI><LI>2</LI><LI>3</LI></OL>

Answer: • A numbered list with 3 options

Question:* What is the default port number for HTTP URL scheme?

Answer: • 80

Question:* Which two meta tags have special relevance for search engines?

Answer: • Description and Keywords

Question:* How do you get two div to sit side by side?

Answer: • Float (left or right)

Question:* Both ordered and unordered lists share which HTML tag to denote a list item?

Answer: • <LI>

Question:* Which attribute of the <IMG> tag tells the browser what to display if a user cannot view the image?

Answer: • alt

Question:* What is the purpose of html?

Answer: • HTML provides structure for web pages

Question:* Which of these will make an image button?

Answer: • <input type="image" src="rainbow.gif" name="image">

Question:* Which of the following is not a valid HTML input type?

Answer: • video

Question:* Which of the following is a valid input type in HTML5 forms?

Answer: • All of these

Question:* [True/False] HTML5 can be used for creating games?

Answer: • True

Question:* Which of the following defines a multi-line text input control in HTML?

Answer: • <textarea rows="2" cols="20">

Question:* Which attribute would you use to specify how many rows an HTML table cell should span?

Answer: • rowspan

Question:* Which attribute would you use on the <A> tag to always open a link in a new window?

Answer: • TARGET="_blank"

Question:* An HTML list within an HTML list is called a...

Answer: • nested list.

Question:* What does the following HTML tag display? <DIV id="text" align="right">content</DIV>

Answer: • A DIV with an id called text and its content aligned right.

Question:* Which HTML form attribute do you use to define where to send the form data?

Answer: • action

Question:* What are the three major parts of an HTML document?

Answer: • Doctype, Head, and Body

Question:* Which of the following is NOT an HTML element?

Answer: • All of these

Question:* What is the purpose of the HTML <EM> tag?

Answer: • To define emphasized text

Question:* What tag tells where a link starts?

Answer: • <a>

Question:* Which element is used to embed video content in an HTML5 document?

Answer: • <video>

Question:* Unless specifically styled, HTML unordered list items are typically rendered with...

Answer: • bullets.

Question:* Which one of these answers would embed "flash.swf" into your webpage?

Answer: • <embed src="flash.swf" height="80" width="80" />

Question:* How can you make a list that lists the items with numbers?

Answer: • <ol>

Question:* What are the three list types in HTML?

Answer: • Unordered, Ordered, Definitions

Question:* Which HTML tag is NOT used when formatting text?

Answer: • <IMG>

Question:* Which HTML tags are used to turn text underlining on and off?

Answer: • <U> and </U>

Question:* Which of the following HTML statements will render a horizontal rule?

Answer: • <hr width="50%" align="center" />

Question:* What is the purpose of this HTML statement? <META name="keywords" content="rabbit,cat">

Answer: • To provide specific keywords to search engines

Question:* What are the two methods for sending form data that you can define for the HTML <FORM> tag?

Answer: • POST and GET

Question:* The HTML <BUTTON> tag

Answer: • creates a push button on a form.

Question:* What does an HTML <A> element need the href attribute set to in order to open the clients email application when clicked?

Answer: • mailto:user@company.com

Question:* What is the HTML <DD> tag used for?

Answer: • To describe an item in a definition list.

Question:* What does the following HTML statement indicate? <TD colspan="2">

Answer: • A table cell which spans two columns.

Question:* Which attribute can be used with the <img> tag to override or reserve the dimensions of the box?

Answer: • height / width

Question:* What would one use to restrict a user to 100 characters in a text box?

Answer: • maxlength="100"

Question:* Why should you add alternative text to your images?

Answer: • To describe the content if the image cannot be displayed

Question:* Which element specifies relationships between the current document and other documents?

Answer: • <link>

Question:* What is used to store information typically used to specify page description, keywords, author of the document, last modified, and other data?

Answer: • Meta tags

Question:* Choose the valid HTML comment.

Answer: • <!-- Comment -->

Question:* Which of following attributes will always make an HTML link open in a new window?

Answer: • target="_blank"

Question:* Imagelinks can show a text label if you add which property?

Answer: • alt

Question:* When using the FORM tag, what allows users to only select one choice?

Answer: • radio buttons

Question:* Which tag represents a header cell of an HTML table?

Answer: • <TH>

Question:* In HTML, outdated elements are referred to as _________.

Answer: • deprecated

Question:* What is a link to a specific part of a web page called?

Answer: • an anchor link

Question:* By default, an unvisited HTML link is displayed as...

Answer: • underlined and blue.

Question:* What is used to start a numbered list with regular numerals?

Answer: • <ol type="1">

Question:* True or False: It is better to set font attributes directly in HTML rather than in CSS.

Answer: • False

Question:* <S> is the HTML 3.0 element for

Answer: • strikethrough text.

Question:* Which element represents a nested browsing context, effectively embedding another HTML page into the current page?

Answer: • <iframe>

Question:* Which HTML tag creates the largest header section?

Answer: • <h1>

Question:* Which two HTML elements must be present in a nested unordered list?

Answer: • <UL> and <LI>

Question:* What character should you use to prevent confusion on numbers higher than 9 with hexadecimal colors ?

Answer: • #

Question:* Which HTML tag is an inline element?

Answer: • <span>

Question:* What function does the <HTML> tag perform?

Answer: • Notifies the browser that this is an HTML document.

Question:* An <object> tag can be used to embed which of the following?

Answer: • All are correct

Question:* Which of these tags would produce a box with the following characteristic: when the viewer typed into it it would show all the characters as little dots?

Answer: • <input type="password">

Question:* What does vlink mean?

Answer: • visited link

Question:* Given "http://www.site.com/page.html", what type of URL is this?

Answer: • Absolute URL

Question:* The Web Hypertext Application Technology Working Group...

Answer: • works on web standards

Question:* Defining clickable sub-areas on an image is called?

Answer: • imagemapping

Question:* Which of the following HTML tags creates a list with bullets by default?

Answer: • <UL>

Question:* Which is NOT a predefined target for links ?

Answer: • _son

Question:* What is the correct term for an HTML element that is no longer part of standard usage?

Answer: • deprecated

Question:* What does the HTML attribute href contain when used with the <A> tag?

Answer: • The destination of the target URL.

Question:* The character entity to represent a non-breaking space:

Answer: • &nbsp;

Question:* Which attribute allows you to make HTML form input elements uneditable?

Answer: • disabled

Question:* In which way can an HTML ordered list be ordered?

Answer: • Both of these

Question:* An <iframe> is used to...

Answer: • embed another document within the current HTML document.

Question:* Which of the following HTML tags are responsible for creating a drop down form input?

Answer: • <select> and <option>

Question:* What does the align attribute do when used with the HTML <TD> tag?

Answer: • Adjusts horizontal alignment of cell content.

Question:* Can you combine HTML and a Cascading Style Sheet to format a paragraph?

Answer: • Always

Question:* By default, a SPAN is displayed as what kind of element?

Answer: • inline

Question:* Which of the following HTML link statements is correctly constructed?

Answer: • <link rel="stylesheet" href="style.css" type="text/css" />

Question:* When making bulleted lists you have what options?

Answer: • disc, circle, square

Question:* The <div> element is an example of...

Answer: • a block element

Question:* Which attribute is used to format the HTML <IMG> tag?

Answer: • None of these

Question:* Which attribute is used to determine where the HTML form data is sent to?

Answer: • action

Question:* Which of these can you use to format HTML text?

Answer: • All of these

Question:* HTML entities, also called special characters,

Answer: • begin with an ampersand(&) and end with a semicolon(;).

Question:* What does the HTML <TITLE> tag do?

Answer: • All of these

Question:* Choose a valid value for the type attribute of the HTML <BUTTON> tag.

Answer: • All of these

Question:* Which standard event attribute does not require a mouse click to trigger the event?

Answer: • onload

Question:* What is this? <a href="/some/page#foo">Label</a>

Answer: • A link to the resource "/some/page". When visited the browser will attempt to jump the viewport to an element with an id="foo"

Question:* What is the purpose of the alt attribute on the HTML <IMG> tag?

Answer: • To define text that should appear if the image cannot be shown

Question:* What does the HTML tag <UL> create?

Answer: • A bulleted list.

Question:* What is an absolute URL?

Answer: • A URL that shows an entire path to the file

Question:* What main tag of an HTML document comes after the <html> tag?

Answer: • <head>

Question:* To encode the SPACE in a URL which character you should use?

Answer: • %20

Question:* Which of these is NOT a valid HTML button type?

Answer: • send

Question:* What is the definition of a deprecated element?

Answer: • An element which has been removed from the latest standards.

Question:* Which of the following is true about the <!DOCTYPE> tag?

Answer: • It is an instruction to the web browser about what version of HTML the page is written in.

Question:* Which element is used to display content to browsers when scripting is turned off?

Answer: • <noscript>

Question:* When using frames in an HTML page, each frame displays a different

Answer: • web page.

Question:* The statement "hex values are the only way to define colors" is ...

Answer: • Wrong. Colors can also be specified with names.

Question:* Which HTML input type can be used to select multiple, non-mutually exclusive options?

Answer: • checkbox

Question:* Which of these elements is responsible for creating table columns?

Answer: • <td>

Question:* What is the HTML attribute valign used for?

Answer: • Vertically aligns the contents of a table cell

Question:* Which of the following is an HTML element?

Answer: • <strong>

Question:* What does the attribute target=" " on the <A> element do?

Answer: • Specifies where to open the linked document.

Question:* Which of these is a form tag attribute?

Answer: • method

Question:* An HTML element attribute name must be immediately followed by

Answer: • equal(=)

Question:* According to web standards the <TABLE> ... </TABLE> element is best used ....

Answer: • To present data in a tabular layout

Question:* Which of the following creates an HTML image link?

Answer: • <a href="/smarterer"><img src="image.jpg"/></a>

Question:* How do you specify text to appear in an <input type="submit"> of an HTML form?

Answer: • value attribute

Question:* What do you call an element that specifies how the screen should be divided into frames?

Answer: • frameset

Question:* To add white space along the margins of a long quote, use this element:

Answer: • <BLOCKQUOTE>

Question:* What does the colspan attribute of the HTML <TD> tag represent?

Answer: • The number of columns a table cell should span.

Question:* GET and POST are values for which HTML form attribute?

Answer: • method

Question:* Which HTML element automatically creates space before and after it is rendered?

Answer: • <P>

Question:* Which of these HTML tags defines a nested list?

Answer: • None of these

Question:* An HTML image-map is an image with

Answer: • clickable areas

Question:* Can we have two or more actions in the same form ?

Answer: • no

Question:* What does the <link> tag do?

Answer: • Defines the relationship between a document and an external resource

Question:* What is the proper syntax for the HTML doctype declaration?

Answer: • <!DOCTYPE html>

Question:* In a form, the INPUT tag can have many types. Which one is NOT a valid type?

Answer: • check

Question:* What are/is the most important difference between XHTML and HTML?

Answer: • All of them

Question:* HTML rendering is performed mostly on the

Answer: • Web browser client

Question:* Which property tells how many rows a cell should span?

Answer: • rowspan=n

Question:* Where should the <base> element be placed?

Answer: • In the <head> section

Question:* What does the GENERATOR meta tag tell?

Answer: • Which program was used to produce the page

Question:* What is the REFRESH meta tag used for ?

Answer: • Refresh the page, optionally to a different url

Question:* Which HTML tag is used to display abbreviated words?

Answer: • <ABBR>

Question:* Which attribute would you assign to an HTML <MAP> tag?

Answer: • name

Question:* The <param> tag is used in conjunction with which of the following?

Answer: • <object>

Question:* To start a list at the count of 3, use which of the following?

Answer: • <ol start="3">

Question:* What is the purpose of the HTML <NOSCRIPT> tag?

Answer: • To display alternate information to a browser that cannot run scripts.

Question:* Which HTML elements are characterized by a line break before and a line break after the element?

Answer: • Block elements

Question:* What describes the <input> tag?

Answer: • All of these

Question:* Which attribute, when used with <A> element, will create tooltip text in most browsers?

Answer: • title

Question:* Which attribute of the HTML <BODY> tag has been deprecated?

Answer: • All of these

Question:* colspan=n can be added to only what tag?

Answer: • <td>

Question:* Which attribute do you use to span table cells across table columns?

Answer: • colspan

Question:* What is the default value of the "target" attribute?

Answer: • _self

Question:* Which element can't be placed inside <table> ... </table>?

Answer: • <legend>

Question:* What does the following HTML statement create? <A name="section1">

Answer: • An internal page anchor named section1.

Question:* How does a (modern) web browser interpret an unknown HTML element (e.g. <blabla>example</blabla>)?

Answer: • The tag is treated as a regular block element (much like a <div>).

Question:* Which HTML attribute is used to set the space between cells in an HTML <TABLE> element?

Answer: • cellspacing

Question:* In HTML 4.01, if OL stands for ordered list and UL stands for unordered list, what does the D in DL stand for?

Answer: • definition

Question:* What does <dd> mean?

Answer: • Definition description

Question:* Which element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin?

Answer: • <object>

Question:* When will the alt attribute of an HTML image tag display?

Answer: • All of these

Question:* HTML attribute values are usually enclosed in?

Answer: • quotation marks

Question:* Which are used to group words or individual characters, and do not create line breaks by default?

Answer: • Inline elements

Question:* In the following example, which type of HTML link is defined? <A href="cats.htm">

Answer: • Relative

Question:* For a radio button to be marked as on what is the recommended attribute and value?

Answer: • checked="checked"

Question:* TRUE or FALSE: Entity names (e.g., &copy;, &reg;) are case sensitive.

Answer: • True

Question:* Relative paths make your hypertext links______.

Answer: • Portable

Question:* TRUE or FALSE? Empty elements are closed in the start tag.

Answer: • TRUE

Question:* What does the rel attribute of the HTML <LINK> tag indicate?

Answer: • The relationship between the current document and the linked document.

Question:* HTML Entities. To display a less than sign we must write:

Answer: • &lt; or &#60;

Question:* HTML Event Attributes onunload fires

Answer: • when the browser window has been closed

Question:* Which element is used to specify multiple media resources for audio and video elements in HTML5?

Answer: • <source>

Question:* Which HTML tag is NOT used when creating an image-map?

Answer: • <LINK>

Question:* Which of the following is a new feature of HTML5?

Answer: • Local database

Question:* In HTML 4, which of the following is NOT true regarding the <script> element?

Answer: • It defines a server-side script.

Question:* Using &amp; to display an ampersand is an example of...

Answer: • HTML entity

Question:* Favicons, also known as a shortcut icon, is defined in what HEAD level element?

Answer: • <link>

Question:* Which element represents a range of text that has been added to a document?

Answer: • <ins>

Question:* Text between "<s>" and "</s>" would appear how?

Answer: • With a line through it

Question:* What is the right way to embed a png image in HTML without an external URL?

Answer: • <img src="data:image/png;base64,..." />

Question:* What is the usage of the <optgroup> tag?

Answer: • It represents a group of option elements

Question:* A <p> can only contain:

Answer: • Inline elements.

Question:* Which tag specifies a default address or a default target for all links on a page?

Answer: • <base>

Question:* Why do you use a summary attribute with tables?

Answer: • For accessibility

Question:* Which of these is not a valid attribute of the HTML <img> tag?

Answer: • color

Question:* Does <p> tag allow for nesting block level elements?

Answer: • No

Question:* Which of these is NOT a valid meta tag option?

Answer: • redirect

Question:* Which of the following is true about the <blockquote> tag?

Answer: • Browsers usually indent <blockquote> tags by default.

Question:* Which one of these is NOT a valid meta tag http-equiv attribute value?

Answer: • time

Question:* What is the default method of a <form> element if not specified?

Answer: • GET

Question:* <ul> is for defining unordered lists, <ol> is for defining ordered lists, but what is <dl> used to define? Is <li> also a valid list item of a <dl>?

Answer: • <dl> is for defining definition lists and <li> is NOT a valid list item of a <dl>

Question:* Which of the following is false regarding the <caption> tag?

Answer: • You can only specify 2 captions per table

Question:* Which attribute is NOT assigned to the HTML <SCRIPT> tag?

Answer: • scope

Question:* What is the correct order of the following HTML definition list tags?

Answer: • <dl>, <dt>, <dd>

Question:* As of HTML 4.01, which of the following HTML elements has been deprecated?

Answer: • <u>

Question:* Given: <label for="first_name">First Name</label>, the label is associated with which input (in the HTML 4.01 specification)?

Answer: • <input type="text" id="first_name" />

Question:* If your sample.html file is in the /p/test folder, and your images are in the /p/images folder, how can you reference an image?

Answer: • Both ways.

Question:* How can one avoid quirks mode?

Answer: • put a valid doctype declaration before the <html> tag

Question:* Strict DTD allows...

Answer: • semantic and presentational elements

Question:* Which of the following is right for frameset tag?

Answer: • <frameset> <frame src="..." /> <frame src="..." /> </frameset>

Question:* Which element can be used to indicate text to be entered by the user?

Answer: • <kbd>

Question:* Which of these is NOT an attribute of an HTML <META> tag?

Answer: • doctype

Question:* Which of the following is a FALSE statement about the <noscript> tag?

Answer: • It can only contain block-level elements.

Question:* How do you use HTML imports to import an HTML file (similar to how in a css file you can do css imports)?

Answer: • <link rel="import" href="/path/to/imports/stuff.html">

Question:* <meta name="_________________" content="_________________________________"> In this tag, which of these is *not* something that could go into the "name" attribute?

Answer: • title

Question:* Which HTML tag do you use to reverse the direction of a text?

Answer: • <bdo>

Question:* Which element is NOT a block element?

Answer: • <td>

Question:* To attach a <label> to a form control you need to?

Answer: • Add the for attribute. It's value will contain the form control's id

Question:* Which one of the following is not a valid <table> attribute in the HTML4.01 specification?

Answer: • rule

Question:* Is the src value of this image a valid URL in HTML? <img src="//example.com/img/logo.png"/>

Answer: • Yes - it's a protocol independent URL

Question:* Which of the following statements is FALSE about the HTML <pre> tag in most web browsers?

Answer: • Disables bidirectional processing

Question:* Which of the following is NOT a valid HTML4 tag?

Answer: • blink

Question:* Which one of the following HTML statements will create an inline frame without a border?

Answer: • <iframe src="smarterer.com" width="500" height="500" frameborder="0"></iframe >

Question:* Which of the following statements about <wbr> tag are incorrect?

Answer: • The browser will insert a line break here

Question:* Which HTML5 tag specifies text that is no longer correct, accurate or relevant?

Answer: • <del>

Question:* Which attribute specifies the language of a linked document?

Answer: • hreflang

Question:* Which one is an inline element?

Answer: • <br>

Question:* Which of the following is not a valid value for the http-equiv attribute of the HTML <META> tag?

Answer: • EXPIRATION

Question:* Choose the valid HTML tag.

Answer: • <Q>

Question:* Is <textarea> a block level element?

Answer: • No

Question:* Which attribute is required for the <form> element?

Answer: • action

Question:* Which is NOT a valid value for the HTML shape attribute?

Answer: • square

Question:* What does the <q> elements cite attribute do?

Answer: • It specifies the source URI of the quote

Question:* How many standard color names are defined in HTML 4.01?

Answer: • 16

Question:* Why is this NOT valid XHTML Strict? <a href="?page=about" target="_blank" title="Read more about us?"><span>Read more about us!</span></a>

Answer: • Target="_blank" isn't valid XHTML Strict! Use JavaScript instead

Question:* What is a valid value for the HTML <TABLE> frame attribute?

Answer: • below

Question:* Which of the following is NOT an HTML event attribute?

Answer: • onhover

Question:* TRUE or FALSE: The HTML Event Attribute "onload" fires as the page finishes rendering.

Answer: • False

Question:* TRUE or FALSE In HTML, a radio button's value attribute must be defined as "checked" for it to display as checked.

Answer: • FALSE



HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers