Practice high-yield Programming & Software Development MCQs on Basic Html — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.
Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress|0/40 answered
✓0 correct
✗0 wrong
0% score
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
This is used to <meta http-equiv="X-UA-Compatible" content="IE=8">
Correct Answer: Option B — mimic behaviour of IE8
Detailed Academic Explanation:
It provides fallback for IE8.
💡Key Conceptual Anchor:Basic Html
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
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 ?
Correct Answer: Option B — HTML5 Shiv
Detailed Academic Explanation:
HTML5 Shiv is a JavaScript workaround, invented by Sjoerd Visscher, to enable styling of HTML5 elements in versions of Internet Explorer prior to version 9, which do not allow unknown elements to be styled without JavaScript.
💡Key Conceptual Anchor:Basic Html
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which one of the following is not a step to install a library you need to perform the compatibility in browsers ?
Correct Answer: Option D — None of the mentioned
Detailed Academic Explanation:
All steps are required.
💡Key Conceptual Anchor:Basic Html
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which property is used to detect the browser’s user agent and code based on the pertinent cases?
Correct Answer: Option A — navigator.userAgent
Detailed Academic Explanation:
An old strategy was to look at the property navigator.userAgent to detect the browser’s user agent and code based on the pertinent cases.
💡Key Conceptual Anchor:Basic Html
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Some users have requested tests for IE’s float double margin bug, and support for position:fixed. Which API is suitable for them?
Correct Answer: Option B — addTest() Plugin API
Detailed Academic Explanation:
A custom plug-in uses code that you write and attach to a load test or a Web performance test.
💡Key Conceptual Anchor:Basic Html
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
___________ is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser.
Correct Answer: Option B — Modernizr
Detailed Academic Explanation:
Modernizr is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser using a simple feature detection model.
💡Key Conceptual Anchor:Basic Html
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
____________ allows you to add custom styles to the document and test an element afterwards.
Correct Answer: Option D — modernizr.testStyles()
Detailed Academic Explanation:
Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards. An element with the id of “modernizr” is injected into the page.
💡Key Conceptual Anchor:Basic Html
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Modernizr does actually add missing functionalities to browsers save for the HTML5 tags styling support.
Correct Answer: Option B — False
Detailed Academic Explanation:
Modernizr, in spite of its name, does not actually add missing functionalities to browsers save for the HTML5 tags styling support.
💡Key Conceptual Anchor:Basic Html
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
___________ is used to test whether geolocation is supported in old browsers.
Correct Answer: Option C — Navigator.userAgent
Detailed Academic Explanation:
Since Modernizr is a JavaScript object with methods, we can use Modernizr.geolocation to test whether geolocation is supported.
💡Key Conceptual Anchor:Basic Html
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
____________ is a resource loader (CSS and JavaScript) that was made to specifically to work side-by-side with Modernizr.
Correct Answer: Option C — Modernizr.load
Detailed Academic Explanation:
Modernizr.load is optional in your build, but if you are loading polyfills, there’s a good chance it can save you some bandwidth and boost performance a bit.
💡Key Conceptual Anchor:Basic Html
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In case we want to implement a JavaScript fallback, we would need to create a conditional statement using Modernizr.
Correct Answer: Option A — True
Detailed Academic Explanation:
Modernizr is a JavaScript library that detects which HTML5 and CSS3 features your visitor’s browser supports.
💡Key Conceptual Anchor:Basic Html
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Metadata store information about the web page that is not necessarily visible to end users.
Correct Answer: Option A — True
Detailed Academic Explanation:
Meta tags store information about the web page—known as metadata that is not necessarily visible to end users (unless you reveal the page source code).
💡Key Conceptual Anchor:Basic Html
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In which part of the HTML metadata is contained?
Correct Answer: Option C — head tag
Detailed Academic Explanation:
Metadata is data (information) about data. The meta tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
💡Key Conceptual Anchor:Basic Html
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a function of robots meta tag?
Correct Answer: Option C — norepeat
Detailed Academic Explanation:
Valid values for the “CONTENT” attribute are: “INDEX”, “NOINDEX”, “FOLLOW”, “NOFOLLOW”.
💡Key Conceptual Anchor:Basic Html
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the role of charset attribute? It specifies
Correct Answer: Option C — the character encoding for the HTML document
Detailed Academic Explanation:
The charset is used to provide the character support.
💡Key Conceptual Anchor:Basic Html
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ prevents the page from being indexed altogether.
Correct Answer: Option C — noindex
Detailed Academic Explanation:
The noindex value of an HTML robots meta tag requests that automated Internet bots avoid indexing a web page.
💡Key Conceptual Anchor:Basic Html
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not supported in HTML5 ?
Correct Answer: Option A — scheme
Detailed Academic Explanation:
All other options are supported in HTML5 except option a.
💡Key Conceptual Anchor:Basic Html
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ prevents search engines from following links inside the page
Correct Answer: Option B — nofollow
Detailed Academic Explanation:
nofollow is a value that can be assigned to the rel attribute of an HTML a element to instruct some search engines that a hyperlink should not influence the link target’s ranking in the search engine’s index.
💡Key Conceptual Anchor:Basic Html
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Different meta tags are defined by changing the __________ attribute to a valid value.
Correct Answer: Option D — name
Detailed Academic Explanation:
The name attribute specifies a name for the information/value of the content attribute.
💡Key Conceptual Anchor:Basic Html
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ prevents search engines from showing a cached link for the page.
Correct Answer: Option C — noarchive
Detailed Academic Explanation:
noarchive helps block search indexing with meta tags.
💡Key Conceptual Anchor:Basic Html
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The value of the ___________ attribute refers to the time interval in seconds before the refresh is performed.
Correct Answer: Option B — content
Detailed Academic Explanation:
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
💡Key Conceptual Anchor:Basic Html
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ is an HTML specification used to add more information to HTML tags.
Correct Answer: Option B — Microdata
Detailed Academic Explanation:
The Microdata spec provides a standardized syntax for additional semantic markup to your web pages to enhance the machine readability of your web pages.
💡Key Conceptual Anchor:Basic Html
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The microdata model consists of groups of name-value pairs known as
Correct Answer: Option A — Item
Detailed Academic Explanation:
The microdata model consists of groups of name-value pairs known as items. Each group is known as an item. Each item can have item types, a global identifier (if the vocabulary specified by the item types support global identifiers for items), and a list of name-value pairs.
💡Key Conceptual Anchor:Basic Html
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Every HTML element may have an ____________ attribute specified.
Correct Answer: Option C — itemscope
Detailed Academic Explanation:
An element with the itemscope attribute specified creates a new item, a group of name-value pairs.
💡Key Conceptual Anchor:Basic Html
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
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 ?
Correct Answer: Option B — The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
Detailed Academic Explanation:
The answer is self explanatory.
💡Key Conceptual Anchor:Basic Html
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
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 ?
Correct Answer: Option A — The value is the element’s datetime value.
Detailed Academic Explanation:
For date- and time-related data, the time element and its datetime attribute can be used.
💡Key Conceptual Anchor:Basic Html
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ___________ of an item is the value of its element’s itemid attribute.
Correct Answer: Option C — global identifier
Detailed Academic Explanation:
The global identifier of an item is the value of its element’s itemid attribute, if it has one, resolved relative to the element on which the attribute is specified. If the itemid attribute is missing or if resolving it fails, it is said to have no global identifier.
💡Key Conceptual Anchor:Basic Html
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
If the element has an itemscope attribute, it returns an __________ object with all the element’s properties.
Correct Answer: Option B — dom object
Detailed Academic Explanation:
When an HTML document is loaded into a web browser, it becomes a document object.
💡Key Conceptual Anchor:Basic Html
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
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 ?
Correct Answer: Option A — The value is the value of the element’s value attribute, if it has one, or the empty string otherwise.
Detailed Academic Explanation:
If the element is a data element, the value is the value of the element’s value attribute, if it has one, or the empty string otherwise.
💡Key Conceptual Anchor:Basic Html
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?
Correct Answer: Option A — document.getItems
Detailed Academic Explanation:
When called, the method must return a live NodeList object containing all the elements in the document, in tree order, that are each top-level microdata items whose types include all the types specified in the method’s argument, having obtained the types by splitting the string on spaces.
💡Key Conceptual Anchor:Basic Html
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The goal of microdata is to create a unified way to define the data in a way any web crawler or reader implementation can read it.
Correct Answer: Option A — True
Detailed Academic Explanation:
Microdata allows the user to create “custom” elements (sort of), to give a specific meaning to them.
💡Key Conceptual Anchor:Basic Html
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following applications/software can be used to create a favicon?
Correct Answer: Option B — Adobe Photoshop
Detailed Academic Explanation:
To create a favicon, we can use any graphic editor program in the market such as Adobe Photoshop or Fireworks.
💡Key Conceptual Anchor:Basic Html
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
y default, iOS adds ____________ effects to icons.
Correct Answer: Option C — rounded corners and reflective shine
Detailed Academic Explanation:
Most of these icons are beautifully designed, and after Apple introduced a new meta tag named apple-touch-icon you can now display website icons on the iOS home screen when you bookmark a site.
💡Key Conceptual Anchor:Basic Html
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Favicon stands for
Correct Answer: Option C — Both a and b
Detailed Academic Explanation:
A favicon also known as a shortcut icon, Web site icon, tab icon or bookmark icon, is a file containing one or more small icons, associated with a particular website or web page.
💡Key Conceptual Anchor:Basic Html
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which attribute is used for favicon?
Correct Answer: Option C — rel
Detailed Academic Explanation:
The syntax is <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
💡Key Conceptual Anchor:Basic Html
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which image file format is not supported in Firefox?
Correct Answer: Option C — SVG
Detailed Academic Explanation:
There are two possible reasons for this: a simple mistake in the SVG file, or a misconfigured server.
💡Key Conceptual Anchor:Basic Html
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The favicon was standardized by the
Correct Answer: Option B — W3C
Detailed Academic Explanation:
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web (abbreviated WWW or W3).
💡Key Conceptual Anchor:Basic Html
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In 2003, the .ico format was registered with the ____________
Correct Answer: Option A — IANA
Detailed Academic Explanation:
In 2003, the .ico format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon
💡Key Conceptual Anchor:Basic Html
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The recommended basic size for a favicon is ___________ pixels
Correct Answer: Option D — both a and c
Detailed Academic Explanation:
The favicon is supposed to be a set of 16×16, 32×32 and 48×48 pictures in ICO format.
💡Key Conceptual Anchor:Basic Html
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In March 1999, Microsoft released Internet Explorer 5, which supported favicons for the first time.
Correct Answer: Option A — True
Detailed Academic Explanation:
It was used in Internet Explorer’s favorites (bookmarks) and next to the URL in the address bar if the page was bookmarked.
💡Key Conceptual Anchor:Basic Html
✓Link copied to clipboard
Continue Your Practice
Advance Html — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
💡Examiner's Advisory for Programming & Software Development
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.