CommerceBasic Html MCQs
Practice Basic Html MCQs for competitive exams.
Basic Html MCQs
Practice questions from this topic.
___________ is used to test whether geolocation is supported in old browsers.
- A. Modernizr
- B. Modernizr.geolocation
- C. Navigator.userAgent
- D. Modernizr.js
Correct Answer: C
Modernizr does actually add missing functionalities to browsers save for the HTML5 tags styling support.
- A. True
- B. False
Correct Answer: B
____________ allows you to add custom styles to the document and test an element afterwards.
- A. hasEvent()
- B. testAllProps()
- C. testProp()
- D. modernizr.testStyles()
Correct Answer: D
___________ is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser.
- A. Navigator
- B. Modernizr
- C. Geolocation
- D. Google API
Correct Answer: B
Some users have requested tests for IE’s float double margin bug, and support for position:fixed. Which API is suitable for them?
- A. mq() media Plugin API
- B. addTest() Plugin API
- C. testAllProps() Plugin API
- D. none of the mentioned
Correct Answer: B
Which property is used to detect the browser’s user agent and code based on the pertinent cases?
- A. navigator.userAgent
- B. navigator.user
- C. navigator
- D. return
Correct Answer: A
Which one of the following is not a step to install a library you need to perform the compatibility in browsers ?
- A. Download the library from the github location
- B. Uncompress the file
- C. Insert the following code inside the head tag
- D. None of the mentioned
Correct Answer: D
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 ?
- A. HTML5
- B. HTML5 Shiv
- C. HTML5 Shim
- D. None of the mentioned
Correct Answer: B
This is used to
- A. make web page compatible only with IE8
- B. mimic behaviour of IE8
- C. make web page incompatible only with IE8
- D. None of the mentioned
Correct Answer: B
What is DOM in HTML?
- A. Hierarchy of objects in ASP.NET
- B. Application programming interface
- C. Convention for representing and interacting with objects in html documents
- D. None of the mentioned
Correct Answer: C
Which of the following allows user to view a webpage?
- A. Operating System
- B. Website
- C. Interpreter
- D. Internet Browser
Correct Answer: D
Which of the following are automatically loaded and operates as a part of browser?
- A. Add-ons
- B. Plug-ins
- C. Utilities
- D. Widgets
Correct Answer: B