NEW
Font size
WorksheetsBITM2113 QUIZ HTML5
Total questions: 20
Worksheet time: 7mins
In HTML, which attribute is used to specify that an input field must be filled out?
required
validate
formvalidate
placeholder
Which of these should not be used in HTML5?
<h6>
<strong>
<center>
<head>
Which method is used to get user’s position?
getCurrentPosition()
getDirectPosition()
post()
getDirection
What does getCurrentPosition() returns?
latitude
longitude
direction
coordinates
Which of the following technique is not for the mobile browser to identify the location of a user?
GPS
IP based position
WIFI based position
A-GPS
Which property is like the GPS in car?
watchPosition()
clearWatch()
getCurrentPosition()
showPosition()
Does geolocation (online) need HTTPS?
Yes
No
Which of the following feature is a part of HTML 5?
Canvas
Audio & Video
Geo location
All of Above
HTML5 documents may contains a ___________ element, which is used to set the header section of a document.
header
footer
section
none of the mentioned
Which is the most current version of CSS?
CSS1
CSS2
CSS3
CSS4
HTML5 APIs consist of HTML5, CSS and JavaScript
True or False?
TRUE
FALSE
________is an HTML5 API that provides a place on a Web page where developers can display graphics, animation, video and games "on the fly" without the need for a plug-in.
Offline Application Cache
Geolocation
SVG
Canvas
What are the default width and height of Canvas API?
Width = 300
Height = 150
Width = 150
Height = 300
Width = 200
Height = 100
Width = 30
Height = 15
What string will call the <canvas> element's drawing context?
canvas.getContext("3d")
canvas.getContext("2d")
canvas.loadContext("2d")
<canvas>("2d")
Which one of the following is the correct tag for displaying HTML5 video?
<div id = “video”>
</div>
<video> </video>
<section id = “video”>
</section>
<object> </object>
Which one of the following video formats/file extensions is most widely supported on the web?
ogg
webm
avi
mp4
Aishah needs to indent and center a quote on his company's webpage. What style attribute or element is the best way to do this using HTML5?
The align attribute with the <p> tag.
The style attribute with the <p> tag.
The <blockquote> element.
The <center> element.
What section of a web page contains the author of the document, copyright information, links to the terms of the use, contact information, etc.
Header
Footer
Nav
Div
All of the following are true of HTML5 EXCEPT:
It requires Windows 8 or higher
It can be used to create Web apps and PC/device apps
It is platform-independent
It is built on an open standard
Bakar has been hired by his company to update their website. He discovers that the existing webpages were structured using tables and needs to explain to The Kennesaw Foundation why the website needs to be rewritten using HTML5 with CSS to control the structure of the webpages. What is the most important reason for doing this?
To ensure that the website can be rendered by all standard compliant web browsers and mobile devices.
To improve the look of the website.
To increase user traffic to the website.
To increase the website rank in search engines.
