HTML5 Test Upwork 2018
Which of the following element is NOT a block element?
<p>
<td>
<div>
<address>
What does the icon attribute of the HTML5 command tag define?
<command icon="?">Click Me!</command>
It is used to define the URL of an image to display as the command.
It is used to define the name of the radiogroup this command belongs to.
It is used to define if the command is checked or not.
It is used to define if the command is available or not.
What is the purpose of the <q> element in HTML5?
It is used to define the start of a term in a definition list.
It is used to define attribute values for one or more columns in a table.
It is used to define the start of a short quotation.
It is used to define what to show browsers that do not support the ruby element.
Which of the following are suitable uses for the nav element?
Note: There may be more than one right answer.
For groups of controls (a, input, button)
For groups of internal links (a elements)
Changing the content of an Ajax page
Defining context menus and toolbars
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>
button
command
checkbox
radio
Which event is fired when an element loses its focus in an HTML5 document?
onfocus
onload
onblur
onselect
Which of the following are true regarding the <keygen> tag in HTML5?
The tag specifies a key-pair generator field used for forms.
The tag generates a public/private key pair and then creates a certificate request. This certificate request will be sent to a Certificate Authority (CA), which then creates a certificate and sends it back to the browser.
The tag generates random passwords when the user requests for a password reset.
The tag is deprecated in HTML5.
Which of the following is true while coding HTML5 in visual studio?
Visual studio has built in tag support and validation for HTML5
Visual Web Developer tools can be used to write HTML5 code and Validation
Visual studio provides a plugin for HTML5 Intellisense
HTML tags are not supported in visual studio.
Which of the following are valid values for the contenteditable attribute of the <figure> element in HTML 5.0?
true
false
0
1
Which media event is triggered when there is an error in fetching media data in HTML5? onstalled
onwaiting
onsuspend
oninvalid
Which of the following events is not supported in HTML5?
oninput
oninvalid
ondrop
onreset
The following link is placed on an HTML webpage:
<a href="http://msdn.com/" target="_blank"> MSDN </a>
What can be inferred from it?
It will open the site msdn.com in the same window.
It will open the site msdn.com in a new window.
It will open the site msdn.com in a frame below.
It will not be clickable as it is not formed correctly.
Which of the following is not a valid syntax for the <link> element in HTML5?
<link rel="icon" href="/abc.jpg" sizes="16x16">
<link rev="stylesheet" href="/abc.css" type="text/css" target="_parent">
<link rel="alternate" type="application/pdf" hreflang="fr" href="/manual-fr">
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>
<a href="/webmaster#xcompany.com">webmaster</a>
<a http="mail:webmaster#xcompany.com">webmaster</a>
<mail http="send:webmaster#xcompany.com">webmaster</mail>
Which of the following is not an attribute of the <meta> element in HTML5?
charset
content
http-equiv
scheme
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)
autocomplete
autofocus
placeholder
formnovalidate
What is the role of the <dfn> element in HTML5?
It is used to define important text.
It is used to define computer code text.
It is used to define sample computer code.
It is used to define a definition term.
What is the proper syntax for a line break tag as W3C specs defines?
<br>
<br/>
<br />
All of these.
Which media event will be fired when a media resource element suddenly becomes empty?
onerror
onended
onloadeddata
onemptied
Which of the following are valid ways to associate custom data with an HTML5 element?
Note: There may be more than one right answer.
<tr class="foo" data-id-type="4">
<tr class="foo" id-type="4">
<tr class="foo" data-id_type="4">
All of the above.
Choose the valid methods for navigating to a fragment identifier.
Note: There may be more than one right answer.
Parse the URL, and let fragid be the <fragment> component of the URL.
If fragid is the empty string, then the indicated part of the document is the top of the document.
If there is an element in the DOM that has an ID exactly equal to fragid, then the first such element in tree order is the indicated part of the document; stop the algorithm here.
If there is an a element in the DOM that has a name attribute whose value is smilar to fragid, then the first such element in tree order is the indicated part of the document; stop the algorithm here.
If the <html>, <head> and <body> tags were removed from a page, what would be the effect?
It will affect DOM parsing.
It will cause warnings/errors under W3C validators.
The view will not render properly.
All of the above.
Which of the following <link> attributes are not supported in HTML5?
Note: There may be more than one right answer.
sizes
rev
rel
charset
Which of the following are possible ways to make the browser automatically adds new images and discards deleted images with server-side events in HTML5?
Note: There may be more than one right answer.
Long Polling Ajax Requests
Server-sent Events
WebSockets
JavaScript objects on the client via JSON.parse().
Which of the following <section> elements have the correct attribute assignment as per HTML5?
Note: There may be more than one right answer.
<section id="example">...</section id="example">
<section id="example">...</section id="example2">
<section id="EXAMPLE">...</section>
<section id="Example">...</section>
<section id="example">...</section>
Which of the following methods are valid for navigating to a fragment identifier?
http://demo.com/#foo
Note: There may be more than one right answer.
<a name="foo">bar</a>
<a id="foo">bar</a>
<div id="foo">bar</div>
<div class="foo">bar</div>
Which of the following is an invalid value for the type attribute of a command tag?
checkbox
radio
command
text
In HTML5, how will the following script be executed?
<script src="/script.js" type="text/javascript" defer="defer"></script>
The script is fetched and executed immediately, before the user agent continues parsing the page.
The script will be executed when the page has finished parsing.
The script will be executed asynchronously, as soon as it is available.
Which among the following tags define a caption for a <fieldset> element?
legend
select
input
textarea
Which tag in HTML5 can be used to define navigation links?
navigation
footer
nav
meter
Which of the following code is valid?
<div id=»container» class=»home-page» datasize=»960px»></div>
<div id=»#container» class=».home-page» data-size=»960px»></div>
<div id=»container» class=»home-page» data-size=»960px»></div>
All of these codes are valid
How do you declare HTML5 document type?
<!DOCTYPE html5>
<!DOCTYPE html>
<!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 5.00 Transitional//EN» «http://www.w3.org/TR/html5/loose.dtd»>
<!DOCTYPE HTML PUBLIC VERSION «5.00»>
Which of the following is a new input type introduced in HTML5?
text
password
email
radio
Which attribute specifies that the video will be loaded at page load, and ready to run. Ignored if autoplay is present.
poster
loop
preload
src
Which of the following tag can be used to associate a caption together with some embedded content in HTML5?
caption
figure
nav
dialog
Which methods are provided by geolocation?
getCurrentPosition
watchPosition
clearWatch
All of the above
Which of the following video formats is not supported by the video tag?
deo tag?
MP4
WebM
Ogg
Mov
How do you specify where the dragged data can be dropped?
Setting attribute dropable = «true»
Calling the event.preventDefault() method for the ondragover event.
Setting attribute draggable = «true»
Calling the event.preventDefault() method for the ondragstart event.
How do you make an HTML element draggable?
Set the attribute draggable = "true"
Define the element type as type = "draggable"
All elements in HTML5 are draggable by default
Set the attribute drag = "true"
How to make an element draggable in HTML5?
set the draggable attribute to true as draggable=»true»
set the movable attribute to true as movable=»true»
set the dropable attribute to true as dropable =»true»
You can not make an element draggable in HTML5
Which of the following is used to set the fill color for a drawing on Canvas?
fillStyle()
fill()
color()
fillColor()
Which is the following represents that the document is using HTML5?
<!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 4.01//EN» «http://www.w3.org/TR/html4/strict.dtd»>
<!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 4.01 Transitional//EN» «http://www.w3.org/TR/html4/loose.dtd»>
<!DOCTYPE html PUBLIC «-//W3C//DTD XHTML 1.0 Strict//EN» «http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd»>
<!DOCTYPE html>
Which of the following attribute triggers an abort event?
abort
offline
onabort
onbeforeonload
Which of these statements are considered as best practices?
Place all CSS/JavaScript files within the <head> element
Place all CSS/JavaScript files at the bottom of <body> element
Place CSS files within the <head> element
Place JavaScript files at the bottom of <body> element
Which method is used to execute a query in WebSQL?
execute
executeWebSQL
executeSql
executeQuery
Is WebSQL a part of HTML5 specification?
Yes
No
Which value of Socket.readyState atribute of WebSocket indicates that the connection is going through the closing handshake?
0
1
2
3
The HTML5 element used to draw a graphics via scripting?
mark
figure
Canvas
figcaption
Which element defines the title of a work (e.g. a book, a song, a movie, etc.)?
<details>
<cite>
<bdi>
<title>
Which one of the following is not a valid input control in HTML5?
range
url
address
number
Which of the following is not a core method of WebSQL Database API?
openDatabase
transaction
executeSql
connect
How to assign multiple classes to one element?
<div class=»one,two,three»></div>
<div class=»one;two;three»></div>
<div class=»one two three»></div>
<div class=»one» class=»two» class=»three»></div>
Can we use SVG tags directly in HTML5 without using any plugin?
Yes
No
Which of the following is a proper syntax for <br> tag as W3C specs for HTML5 defines?
<br />
<br/>
<br>
<br></br>
Which is the correct method to draw an image on HTML Canvas
drawImage()
drawNewImage()
createImage()
gdImage()
Which of the following attributes can be specified on any HTML element?
Note: There may be more than one right answer.
contenteditable
height
id
name
spellcheck
translate
value
Which of the following attribute specifies whether or not a user is allowed to drag an element?
draggable
context
content
drag
The element to specify a list of predefined options for input control is
<source>
<datalist>
<tracklist>
<optionlist>
What is the correct HTML element for the biggest heading?
<h6>
<h1>
<head>
<heading>
What is the default character encoding in HTML5?
ANSI
ISO-8859-1
UTF-8
ASCII
Which of the following is a new form element introduced in HTML5?
button
textarea
datalist
select
Which method is used to fetch the current geographic location of the user and update it as the user moves?
getCurrentPosition()
watchPosition()
getContinuousPosition()
watchContinuousPosition()
Which of these elements are block-level?
Note: There may be more than one right answer.
<h1> ... <h6>
<p>
<img>
<span>
What is used to continuously push events from the web server to the client's browser?
Server Sent Events
Web Workers
AJAX ?
Push Notifications
Which of the following input control is provided by HTML5 for input fields that should contain an e-mail address?
url
email
number
email-address
Which of the following tags used to specify subtitles for <video>?
<sub>
<title>
<subtitle>
<track>
Which of these table element does not exists?
<tfoot>
<th>
<col>
<tcol>
Which of the following HTML5 elements is deprecated?
output
keygen
meter
optgroup
Which of the following input control accepts only numerical value in HTML5?
range
number
time
week
How many values can the class attribute have per HTML element?
20
50
unlimited
5
Which of the following is a new input restriction introduced in HTML5?
disabled
maxlength
readonly
required
Which of the following attributes requires you to have a value in an input control in HTML5?
autofoucs
required
placeholder
output
When using video on a page, if autoplay attribute is set then which of the following attributes is ignored?
loop
preload
controls
muted
Which of the following is an empty element?
<br/>
<p> </p>
</img>
</p>
Which of these elements are deprecated in HTML5?
Note: There may be more than one right answer.
<center>
<font>
<iframe>
<tfoot>
Which tag is used to show subtitles in a video in HTML5?
track
source
video
audio
How do you make the content inside an element editable?
Setting the attribute contenteditable = "true"
Setting the attribute editable = "true"
Setting the attribute content = "editable"
The content inside all the elements is editable by default in HTML5.
What is the difference between the readonly and the disabled attribute of form controls?
Note: There may be more than one right answer.
Both attributes make the form controls non-interactive, however form controls with the disabled attribute also appear grey
Form controls with the readonly attribute allow the user to select the text and interact with it, whereas disabled controls are entirely non-interactive.
The readonly attribute can only be used on text controls.
What is the purpose of html?
HTML controls the MVC design pattern
HTML provides structure for web pages
HTML adds style to static web elements
HTML provides functionality to manipulate the DOM
Which of the following attribute triggers event when an element gets user input?
oninput
ondata
onput
onhaschange
Which is the recommended standard video format in HTML5?
Theora video and Vorbis audio, as well as the Ogg container format.
The HTML5 specification does not specify which video and audio formats browsers should support.
H.264/MPEG-4 AVC
Which of the following event occurs when the document comes online?
onload
onloadstart
onmessage
ononline
What is the difference between an input of the type=“button” and the button element?
Note: There may be more than one right answer.
<button> elements are much easier to style than <input> elements.
<button> elements support inner HTML content (e.g. <em>, <strong>, <img>, etc.).
<input> elements only accept text value attributes.
How many h1 elements are recommended on a single page?
Unlimited.
One per section (HTML5) or one per document (HTML4).
Depends on the size of the page.
Which attribute specifies that the image is part of a server-side image-map?
IMAP
SMAP
ISMAP
imageMap
Which of the following is correct for embed "flash.swf" into your webpage?
<flashembed src="/flash.swf" height="80" width="80" />
<SWF src="/flash.swf" height="80" width="80" />
<embed src="/flash.swf" height="80" width="80" />
<insert src="/flash.swf" height="80" width="80" />
Which of the following method is used to import external scripts?
import
importScripts
scriptsImport
importJS
Which of the following features are supported by HTML5?
Web Sockets
Server-Sent Events
Persistent Local Storage
All of the above
Which of the following creates an email address hyperlink?
<a href="/meOdomainname.com">Email me</a>
<a href="mailto:emOdomainname.com">Email me</a>
<a href="email:meOdomainname.com">Email me</a>
<a href="send:meOdomainname.com">Email me</a>
Please select the correct media attributes of the style element:
Note: There may be more than one right answer.
all
printscreen
not phone and (color)
speech and (min-device-width: 800px)
Which of the following is/are valid HTML5 attributes?
Note: There may be more than one right answer.
webgl
spellcheck
manualfocus
contextmenu
What is ALT text?
Text displayed when you hold your mouse over an image
Text displayed when an image is not found
Text displayed when a user has images switched off in the browser
All of the above
Please select the correct usage of the address element:
<address>Last Modified: 2016/05/12 21:32:56</address>
<script src="/script.js" type="text/javascript" defer="defer"></script>
The script is fetched and executed immediately, before the user agent continues parsing the page.
The script will be executed when the page has finished parsing.
The script will be executed asynchronously, as soon as it is available.
Which among the following tags define a caption for a <fieldset> element?
legend
select
input
textarea
Which tag in HTML5 can be used to define navigation links?
navigation
footer
nav
meter
Which of the following code is valid?
<div id=»container» class=»home-page» datasize=»960px»></div>
<div id=»#container» class=».home-page» data-size=»960px»></div>
<div id=»container» class=»home-page» data-size=»960px»></div>
All of these codes are valid
How do you declare HTML5 document type?
<!DOCTYPE html5>
<!DOCTYPE html>
<!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 5.00 Transitional//EN» «http://www.w3.org/TR/html5/loose.dtd»>
<!DOCTYPE HTML PUBLIC VERSION «5.00»>
Which of the following is a new input type introduced in HTML5?
text
password
radio
Which attribute specifies that the video will be loaded at page load, and ready to run. Ignored if autoplay is present.
poster
loop
preload
src
Which of the following tag can be used to associate a caption together with some embedded content in HTML5?
caption
figure
nav
dialog
Which methods are provided by geolocation?
getCurrentPosition
watchPosition
clearWatch
All of the above
Which of the following video formats is not supported by the video tag?
deo tag?
MP4
WebM
Ogg
Mov
How do you specify where the dragged data can be dropped?
Setting attribute dropable = «true»
Calling the event.preventDefault() method for the ondragover event.
Setting attribute draggable = «true»
Calling the event.preventDefault() method for the ondragstart event.
How do you make an HTML element draggable?
Set the attribute draggable = "true"
Define the element type as type = "draggable"
All elements in HTML5 are draggable by default
Set the attribute drag = "true"
How to make an element draggable in HTML5?
set the draggable attribute to true as draggable=»true»
set the movable attribute to true as movable=»true»
set the dropable attribute to true as dropable =»true»
You can not make an element draggable in HTML5
Which of the following is used to set the fill color for a drawing on Canvas?
fillStyle()
fill()
color()
fillColor()
Which is the following represents that the document is using HTML5?
<!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 4.01//EN» «http://www.w3.org/TR/html4/strict.dtd»>
<!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 4.01 Transitional//EN» «http://www.w3.org/TR/html4/loose.dtd»>
<!DOCTYPE html PUBLIC «-//W3C//DTD XHTML 1.0 Strict//EN» «http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd»>
<!DOCTYPE html>
Which of the following attribute triggers an abort event?
abort
offline
onabort
onbeforeonload
Which of these statements are considered as best practices?
Place all CSS/JavaScript files within the <head> element
Place all CSS/JavaScript files at the bottom of <body> element
Place CSS files within the <head> element
Place JavaScript files at the bottom of <body> element
Which method is used to execute a query in WebSQL?
execute
executeWebSQL
executeSql
executeQuery
Is WebSQL a part of HTML5 specification?
Yes
No
Which value of Socket.readyState atribute of WebSocket indicates that the connection is going through the closing handshake?
0
1
2
3
The HTML5 element used to draw a graphics via scripting?
mark
figure
Canvas
figcaption
Which element defines the title of a work (e.g. a book, a song, a movie, etc.)?
<details>
<cite>
<bdi>
<title>
Which one of the following is not a valid input control in HTML5?
range
url
address
number
Which of the following is not a core method of WebSQL Database API?
openDatabase
transaction
executeSql
connect
How to assign multiple classes to one element?
<div class=»one,two,three»></div>
<div class=»one;two;three»></div>
<div class=»one two three»></div>
<div class=»one» class=»two» class=»three»></div>
Can we use SVG tags directly in HTML5 without using any plugin?
Yes
No
Which of the following is a proper syntax for <br> tag as W3C specs for HTML5 defines?
<br />
<br/>
<br>
<br></br>
Which is the correct method to draw an image on HTML Canvas
drawImage()
drawNewImage()
createImage()
gdImage()
Which of the following attributes can be specified on any HTML element?
Note: There may be more than one right answer.
contenteditable
height
id
name
spellcheck
translate
value
Which of the following attribute specifies whether or not a user is allowed to drag an element?
draggable
context
content
drag
The element to specify a list of predefined options for input control is
<source>
<datalist>
<tracklist>
<optionlist>
What is the correct HTML element for the biggest heading?
<h6>
<h1>
<head>
<heading>
What is the default character encoding in HTML5?
ANSI
ISO-8859-1
UTF-8
ASCII
Which of the following is a new form element introduced in HTML5?
button
textarea
datalist
select
Which method is used to fetch the current geographic location of the user and update it as the user moves?
getCurrentPosition()
watchPosition()
getContinuousPosition()
watchContinuousPosition()
Which of these elements are block-level?
Note: There may be more than one right answer.
<h1> ... <h6>
<p>
<img>
<span>
What is used to continuously push events from the web server to the client's browser?
Server Sent Events
Web Workers
AJAX ?
Push Notifications
Which of the following input control is provided by HTML5 for input fields that should contain an e-mail address?
url
number
email-address
Which of the following tags used to specify subtitles for <video>?
<sub>
<title>
<subtitle>
<track>
Which of these table element does not exists?
<tfoot>
<th>
<col>
<tcol>
Which of the following HTML5 elements is deprecated?
output
keygen
meter
optgroup
Which of the following input control accepts only numerical value in HTML5?
range
number
time
week
How many values can the class attribute have per HTML element?
20
50
unlimited
5
Which of the following is a new input restriction introduced in HTML5?
disabled
maxlength
readonly
required
Which of the following attributes requires you to have a value in an input control in HTML5?
autofoucs
required
placeholder
output
When using video on a page, if autoplay attribute is set then which of the following attributes is ignored?
loop
preload
controls
muted
Which of the following is an empty element?
<br/>
<p> </p>
</img>
</p>
Which of these elements are deprecated in HTML5?
Note: There may be more than one right answer.
<center>
<font>
<iframe>
<tfoot>
Which tag is used to show subtitles in a video in HTML5?
track
source
video
audio
How do you make the content inside an element editable?
Setting the attribute contenteditable = "true"
Setting the attribute editable = "true"
Setting the attribute content = "editable"
The content inside all the elements is editable by default in HTML5.
What is the difference between the readonly and the disabled attribute of form controls?
Note: There may be more than one right answer.
Both attributes make the form controls non-interactive, however form controls with the disabled attribute also appear grey
Form controls with the readonly attribute allow the user to select the text and interact with it, whereas disabled controls are entirely non-interactive.
The readonly attribute can only be used on text controls.
What is the purpose of html?
HTML controls the MVC design pattern
HTML provides structure for web pages
HTML adds style to static web elements
HTML provides functionality to manipulate the DOM
Which of the following attribute triggers event when an element gets user input?
oninput
ondata
onput
onhaschange
Which is the recommended standard video format in HTML5?
Theora video and Vorbis audio, as well as the Ogg container format.
The HTML5 specification does not specify which video and audio formats browsers should support.
H.264/MPEG-4 AVC
Which of the following event occurs when the document comes online?
onload
onloadstart
onmessage
ononline
What is the difference between an input of the type=“button” and the button element?
Note: There may be more than one right answer.
<button> elements are much easier to style than <input> elements.
<button> elements support inner HTML content (e.g. <em>, <strong>, <img>, etc.).
<input> elements only accept text value attributes.
How many h1 elements are recommended on a single page?
Unlimited.
One per section (HTML5) or one per document (HTML4).
Depends on the size of the page.
Which attribute specifies that the image is part of a server-side image-map?
IMAP
SMAP
ISMAP
imageMap
Which of the following is correct for embed "flash.swf" into your webpage?
<flashembed src="/flash.swf" height="80" width="80" />
<SWF src="/flash.swf" height="80" width="80" />
<embed src="/flash.swf" height="80" width="80" />
<insert src="/flash.swf" height="80" width="80" />
Which of the following method is used to import external scripts?
import
importScripts
scriptsImport
importJS
Which of the following features are supported by HTML5?
Web Sockets
Server-Sent Events
Persistent Local Storage
All of the above
Which of the following creates an email address hyperlink?
<a href="/meOdomainname.com">Email me</a>
<a href="mailto:emOdomainname.com">Email me</a>
<a href="email:meOdomainname.com">Email me</a>
<a href="send:meOdomainname.com">Email me</a>
Please select the correct media attributes of the style element:
Note: There may be more than one right answer.
all
printscreen
not phone and (color)
speech and (min-device-width: 800px)
Which of the following is/are valid HTML5 attributes?
Note: There may be more than one right answer.
webgl
spellcheck
manualfocus
contextmenu
What is ALT text?
Text displayed when you hold your mouse over an image
Text displayed when an image is not found
Text displayed when a user has images switched off in the browser
All of the above
Please select the correct usage of the address element:
<address>Last Modified: 2016/05/12 21:32:56</address>
<footer>
<address>
Feel free to contact me at
<a href="mailto:johns0upwork.com">John Smith</a>.
<p><small>© copyright 2016 Upwork.</small></p>
</address>
</footer>
<address>
Feel free to contact me at
<a href="mailto:johns0upwork.com">John Smith</a>.
<p><small>© copyright 2016 Upwork.</small></p>
</address>
</footer>
<footer>
<address>
Feel free to contact me at
<a href="mailto:johns0upwork.com">John Smith</a>.
</address>
<p><small>© copyright 2016 Upwork.</small></p>
</footer>
Which HTML tag is NOT used when formatting text?
<img>
<small>
<p>
<strong>
Which of the link types can be specified on the link elements in HTML (a, area, link)?
Note: There may be more than one right answer.
alternate
text/javascript
license
prefetch
image
rss
stylesheet
Which is the correct HTML element for making a drop-down list?
<list>
<input type="list">
<input type="dropdown">
<select>
Which of the following is used to display a web page within a web page?
external
iframe
webframe
webpage
What is the right way to pass custom data to an element?
<div data="{ 'key':'value' }"></div>
<div data-key="value"></div>
<div data_key="value"></div>
<div key="value"></div>
How would you open a link in a new tab/browser window?
<a href="http://www.website.com" target="_blank">Website.com</a>
<a href="http://www.website.com" target="new">Website.com</a>
<a href="http://www.website.com" new>Website.com</a>
<a href="http://www.website.com" new="tab">Website.com</a>
Please select the allowed pragma directives (http-equiv attributes on a meta element):
Note: There may be more than one right answer.
content-language
page-type
page-style
refresh
set-cookie
What was the previous version of HTML, prior to HTML5?
HTML 4.01
HTML 4.9
HTML 4.09
HTML 4
What is the difference between the strong and the b elements?
There is no difference - they look the same!
The b element represents importance, seriousness, or urgency for its contents. On the other hand, the strong element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood.
The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood. On the other hand, the strong element represents strong importance, seriousness, or urgency for its contents.
What is the correct HTML element to define important text?
<strong>
<imp>
<i>
<important>
What are the DIV tags used for?
To replace paragraphs. i.e. p tags
To provide space between tables
To logically divide the paragraphs
To logically divide the document
Which of the following is not a valid attribute of script tag?
defer
type
scope
source
HTML5 provides the really nice template element, which is used to declare fragments of HTML that can be cloned and inserted in the document by script. Which of the following answers are true for the template element?
Note: There may be more than one right answer.
Templates are rendered inside the document, so you can easily access them via JavaScript (e.g. document.getElementById() or querySelector()).
Templates provide a method for declaring inert DOM subtrees and manipulating them to instantiate document fragments with identical contents.
Any content within a template won't have side effects. Scripts don't run, images don't load, audio doesn't play, etc.
Templates can be placed anywhere inside of <head>, <body>, or <frameset>
<address>
Feel free to contact me at
<a href="mailto:johns0upwork.com">John Smith</a>.
</address>
<p><small>© copyright 2016 Upwork.</small></p>
</footer>
Which HTML tag is NOT used when formatting text?
<img>
<small>
<p>
<strong>
Which of the link types can be specified on the link elements in HTML (a, area, link)?
Note: There may be more than one right answer.
alternate
text/javascript
license
prefetch
image
rss
stylesheet
Which is the correct HTML element for making a drop-down list?
<list>
<input type="list">
<input type="dropdown">
<select>
Which of the following is used to display a web page within a web page?
external
iframe
webframe
webpage
What is the right way to pass custom data to an element?
<div data="{ 'key':'value' }"></div>
<div data-key="value"></div>
<div data_key="value"></div>
<div key="value"></div>
How would you open a link in a new tab/browser window?
<a href="http://www.website.com" target="_blank">Website.com</a>
<a href="http://www.website.com" target="new">Website.com</a>
<a href="http://www.website.com" new>Website.com</a>
<a href="http://www.website.com" new="tab">Website.com</a>
Please select the allowed pragma directives (http-equiv attributes on a meta element):
Note: There may be more than one right answer.
content-language
page-type
page-style
refresh
set-cookie
What was the previous version of HTML, prior to HTML5?
HTML 4.01
HTML 4.9
HTML 4.09
HTML 4
What is the difference between the strong and the b elements?
There is no difference - they look the same!
The b element represents importance, seriousness, or urgency for its contents. On the other hand, the strong element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood.
The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood. On the other hand, the strong element represents strong importance, seriousness, or urgency for its contents.
What is the correct HTML element to define important text?
<strong>
<imp>
<i>
<important>
What are the DIV tags used for?
To replace paragraphs. i.e. p tags
To provide space between tables
To logically divide the paragraphs
To logically divide the document
Which of the following is not a valid attribute of script tag?
defer
type
scope
source
HTML5 provides the really nice template element, which is used to declare fragments of HTML that can be cloned and inserted in the document by script. Which of the following answers are true for the template element?
Note: There may be more than one right answer.
Templates are rendered inside the document, so you can easily access them via JavaScript (e.g. document.getElementById() or querySelector()).
Templates provide a method for declaring inert DOM subtrees and manipulating them to instantiate document fragments with identical contents.
Any content within a template won't have side effects. Scripts don't run, images don't load, audio doesn't play, etc.
Templates can be placed anywhere inside of <head>, <body>, or <frameset>
Which of the following is not valid about MediaRecorder API ?
MediaRecorder.start() method is called to start the recording.
MediaRecorder.process() method is called to start the recording.
MediaRecorder API works alongside Navigator.getUserMedia() to capture media data.
The contents of the recording will be made available in the platform's default encoding via the dataavailable event
Which of the following method is used to check if the browser can play the specified audio/video type?
checkType
canPlayType
typeSupport
mediaPlayType
Which of the following tag is used for a multi line text input control?
textarea
textml
text
None of the above
First web browser was created by ____?
Microsoft
Tim Berners-Lee
Netscape
IE
Which is the correct SVG element to define text?
<text>
<svgText>
<svgString>
<string>
Which method is used to finish a launched worker?
endWorker
end
terminate
finish
Which tag can prevent sites with adult content from being seen on MSIEbrowsers ?
tag
tag
icra.org registered
None of the above
Select correctly written HTML elements:
Note: There may be more than one right answer.
<input type=“submit” value=“Submit”>
<input type=submit value=Submit disabled=“false”>
<input type=submit value=‘Submit’ disabled>
<input type=submit value=Submit autofocus=“autofocus”>
Which of the following elements are obsolete in the latest HTML5 specification?
Note: There may be more than one right answer.
acronym
bgsound
blink
center
embed
fieldset
keygen
meter
Which of the following are important attributes that can be used with <embed> tag? (choose all that apply)
Note: There may be more than one right answer.
hide
autoplay
align
name
loop
Which of these values are allowed for attribute “method” for form element?
Note: There may be more than one right answer.
get
post
patch
delete
What is the correct HTML for creating a hyperlink?
<a>http://www.website.com</a>
<a href="http://www.website.com">Website.com</a>
<a name="http://www.website.com">Website.com</a>
<a url="http://www.website.com">Website.com</a>
The HTML tag supports the following attributes?
Note: There may be more than one right answer.
usemap
decarle
codetypes
classid
archive
Which of the following attributes are supported by the HTML <object> tag? (Check all that apply)
Note: There may be more than one right answer.
usemap
decarle
codetypes
classid
archive
Which of following are valid media types for <video> tag in html5?
Note: There may be more than one right answer.
video/mp4
video/webm
video/ogg
video/avi
Which of the following statements are valid for canvas element? (Choose all that apply)
Note: There may be more than one right answer.
<canvas> is an HTML element which can be used to draw graphics using scripting (usually JavaScript).
The <canvas> element is only a container for graphics.
Canvas can draw colorful text, with or without animation.
Canvas can not respond to JavaScript events.
What is the role of the <wbr> element in HTML5?
Defines a possible line-break.
Defines the main content of a document.
Defines an important text.
Defines a wide `br` tag.
Custom data attributes (data-*) are very useful for storing data private to a page or application.
Are there any naming conventions for custom data attributes?
Custom data attributes can be named like variables in JavaScript.
A custom data attribute’s name has to start with the string “data-”, followed by at least one character, it also has to be XML-compatible and contain no uppercase ASCII letters.
The first character of the custom data attribute’s name must not be a number and the name also has to contain the string “data” somewhere.
Which is the correct doctype for HTML5?
<!DOCTYPE html>
<!DOCTYPE HTML5>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
All of the above
Can there be a multiline HTML5 placeholder text in a <textarea>? (choose all that apply)
For example,<textarea name="story" placeholder="Enter story\n next line\n more"></textarea>
Note: There may be more than one right answer.
Yes, It's a normal function in HTML.
Yes, It's a new function in HTML5.
No, It could not have multiline placeholder
Could use javascript.
Which HTML element could be used to display an ordered list?
ol
ul
list
ordered
Which of the following doctypes are recommended for use in a web document?
Note: There may be more than one right answer.
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html4/html4-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN”>
MediaRecorder.start() method is called to start the recording.
MediaRecorder.process() method is called to start the recording.
MediaRecorder API works alongside Navigator.getUserMedia() to capture media data.
The contents of the recording will be made available in the platform's default encoding via the dataavailable event
Which of the following method is used to check if the browser can play the specified audio/video type?
checkType
canPlayType
typeSupport
mediaPlayType
Which of the following tag is used for a multi line text input control?
textarea
textml
text
None of the above
First web browser was created by ____?
Microsoft
Tim Berners-Lee
Netscape
IE
Which is the correct SVG element to define text?
<text>
<svgText>
<svgString>
<string>
Which method is used to finish a launched worker?
endWorker
end
terminate
finish
Which tag can prevent sites with adult content from being seen on MSIEbrowsers ?
tag
tag
icra.org registered
None of the above
Select correctly written HTML elements:
Note: There may be more than one right answer.
<input type=“submit” value=“Submit”>
<input type=submit value=Submit disabled=“false”>
<input type=submit value=‘Submit’ disabled>
<input type=submit value=Submit autofocus=“autofocus”>
Which of the following elements are obsolete in the latest HTML5 specification?
Note: There may be more than one right answer.
acronym
bgsound
blink
center
embed
fieldset
keygen
meter
Which of the following are important attributes that can be used with <embed> tag? (choose all that apply)
Note: There may be more than one right answer.
hide
autoplay
align
name
loop
Which of these values are allowed for attribute “method” for form element?
Note: There may be more than one right answer.
get
post
patch
delete
What is the correct HTML for creating a hyperlink?
<a>http://www.website.com</a>
<a href="http://www.website.com">Website.com</a>
<a name="http://www.website.com">Website.com</a>
<a url="http://www.website.com">Website.com</a>
The HTML tag supports the following attributes?
Note: There may be more than one right answer.
usemap
decarle
codetypes
classid
archive
Which of the following attributes are supported by the HTML <object> tag? (Check all that apply)
Note: There may be more than one right answer.
usemap
decarle
codetypes
classid
archive
Which of following are valid media types for <video> tag in html5?
Note: There may be more than one right answer.
video/mp4
video/webm
video/ogg
video/avi
Which of the following statements are valid for canvas element? (Choose all that apply)
Note: There may be more than one right answer.
<canvas> is an HTML element which can be used to draw graphics using scripting (usually JavaScript).
The <canvas> element is only a container for graphics.
Canvas can draw colorful text, with or without animation.
Canvas can not respond to JavaScript events.
What is the role of the <wbr> element in HTML5?
Defines a possible line-break.
Defines the main content of a document.
Defines an important text.
Defines a wide `br` tag.
Custom data attributes (data-*) are very useful for storing data private to a page or application.
Are there any naming conventions for custom data attributes?
Custom data attributes can be named like variables in JavaScript.
A custom data attribute’s name has to start with the string “data-”, followed by at least one character, it also has to be XML-compatible and contain no uppercase ASCII letters.
The first character of the custom data attribute’s name must not be a number and the name also has to contain the string “data” somewhere.
Which is the correct doctype for HTML5?
<!DOCTYPE html>
<!DOCTYPE HTML5>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
All of the above
Can there be a multiline HTML5 placeholder text in a <textarea>? (choose all that apply)
For example,<textarea name="story" placeholder="Enter story\n next line\n more"></textarea>
Note: There may be more than one right answer.
Yes, It's a normal function in HTML.
Yes, It's a new function in HTML5.
No, It could not have multiline placeholder
Could use javascript.
Which HTML element could be used to display an ordered list?
ol
ul
list
ordered
Which of the following doctypes are recommended for use in a web document?
Note: There may be more than one right answer.
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html4/html4-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN”>
No comments:
Post a Comment
Ramadhan 2019