R4RIN
MCQS
HTML MCQ Quiz Hub
HTML Mcq Question Set 8
Choose a topic to test your knowledge and improve your HTML skills
1. What is DOM?
Hierarchy of objects in ASP.NET
Application programming interface
Convention for representing and interacting with objects in html documents
Language dependent application programming
2. Which one of the following is an open source JavaScript library that enables styling for HTML5 elements in versions of Internet Explorer before IE 9 ?
HTML5
HTML5 Shiv
HTML5 Shim
HTML5 Sham
3. Which one of the following is not a step to install a library you need to perform the compatibility in browsers?
Download the library from the github location
Uncompress the file
Insert the following code inside the head tag
None of the mentioned
4. Which property is used to detect the browser’s user agent and code based on the pertinent cases?
navigator.userAgent
navigator.user
navigator
return
5. Some users have requested tests for IE’s float double margin bug, and support for position:fixed. Which API is suitable for them?
mq() media Plugin API
addTest() Plugin API
testAllProps() Plugin API
none of the mentioned
6. ___ is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser.
Navigator
Modernizr
Geolocation
Google API
7. ___ allows you to add custom styles to the document and test an element afterwards.
hasEvent()
testAllProps()
testProp()
modernizr.testStyles()
8. ____ is used to test whether geolocation is supported in old browsers.
Modernizr
Modernizr.geolocation
Navigator.userAgent
Modernizr.js
9. ___ is a resource loader (CSS and JavaScript) that was made to specifically to work side-by-side with Modernizr.
HasEvent()
Navigator.userAgent
Modernizr.load
Modernizer.geolocation
10. In which part of the HTML metadata is contained?
body tag
html tag
head tag
title tag
11. Which of the following is not a function of robots meta tag?
noindex
nofollow
norepeat
noarchive
12. What is the role of charset attribute? It specifies
a scheme to be used to interpret the value of the content attribute
a name for the metadata
the character encoding for the HTML document
the character decoding for the HTML document
13. ___ prevents the page from being indexed altogether.
noarchive
nofollow
noindex
novalue
14. Which of the following is not supported in HTML5?
scheme
content
http-equiv
name
15. ____ prevents search engines from following links inside the page.
noarchive
nofollow
noindex
novalue
16. Different meta tags are defined by changing the ___ attribute to a valid value.
scheme
content
http-equiv
name
17. ____ prevents search engines from showing a cached link for the page.
nobot
nofollow
noarchive
nosearch
18. The value of the ___ attribute refers to the time interval in seconds before the refresh is performed.
scheme
content
http-equiv
name
19. ___ is an HTML specification used to add more information to HTML tags.
Macrodata
Microdata
Minidata
Modifydata
20. The microdata model consists of groups of name-value pairs known as ___
Item
Property
Value
URL
21. Every HTML element may have an __ attribute specified.
itemtype
relevant types
itemscope
itemref
22. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element?
The value is the item created by the element
The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
On getting, if the element has a datetime content attribute, the IDL attribute must return that content attribute’s value
The value is the element’s textContent
23. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element?
The value is the element’s datetime value
The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute
The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
The value is the element’s textContent
24. The _ of an item is the value of its element’s itemid attribute.
token
typed item
global identifier
scope
25. If the element has an itemscope attribute, it returns an ___ object with all the element’s properties.
itemscope
dom object
collection.namedItem
itemtype
26. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a data element?
The value is the value of the element’s value attribute if it has one, or the empty string otherwise
The value is the item created by the element
The value is the element’s datetime value
The value is item’s scope
27. Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?
document.getItems
element.itemProp
collection.namedItem
object.itemref
28. Which of the following applications/software can be used to create a favicon?
Unity
Adobe Photoshop
Dreamweaver
VLC
29. By default, iOS adds ____________ effects to icons.
reflective shine
square corners and reflective shine
rounded corners and reflective shine
apple trademark
30. Favicon stands for ______
Fave icon
Favorite icon
Both Fave icon and Favorite icon
Fav icon
31. Which attribute is used for favicon?
title
rel
head
32. Which image file format is not supported in Firefox?
MNG
PNG
SVG
APNG
33. The favicon was standardized by the _______
IANA
W3C
WIPO
EPO
34. In 2003, the .ico format was registered with the
IANA
W3C
WIPO
EPO
35. The recommended basic size for a favicon is ___________ pixels.
16×16
26×26
48×48
both 16×16 and 48×48
36. _________ is the XML equivalent to strict HTML 4.01.
XHTML 1.0 Strict
XHTML 1.0 Frameset
XHTML 1.0 Transitional
XHTML 1.1 Strict
37. Which of the following statement is true?
Attribute names must be in uppercase
Attribute values must be quoted
Attribute minimization is mandatory
Attribute values should not be quoted
38. The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.
source
src
xmlns
link
39. Which of the following encoding an XML parser assumes?
UTF-8
UTF-16
UTF-32
Both UTF-8 and UTF-32
40. __________ is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.
XHTML + RDFa
XHTML+XHTML5
XHTML1.0+XHTML2.0
XHTML + RDF
41. Which feature was already introduced before HTML5?
Canvas/SVG
Video
Geolocation
Frames
42. Which tag is used with JavaScript?
<canvas>
<table>
<article>
<footer>
43. What application can one create even before the introduction of HTML5?
Web applications
Mobile applications
Forms
Browser based games
44. What is the correct syntax of doctype in HTML5?
<!doctype html>
<doctype html!>
<doctype html>
</doctype html>
45. What if one does not use the doctype in the starting of HTML document?
Browser finds the document in quirky mode
Browser finds a document in standard mode
Browser stops working
Browser crashes after showing the page
46. Which of the following is not semantic element for text in HTML5?
<mark>
<time>
<wbr>
<article>
47. Which tag supports Non-English language?
<input>
<audio>
<embed>
<bdo>
48. Which element was not removed by HTML5?
<strike>
<center>
<small>
<big>
49. Which of the following defines the title of a work?
<cite>
<hr>
<a>
<address>
Submit