Practice high-yield Programming & Software Development MCQs on Html5 — Part 1 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
Which of the following HTML 4 attributes is removed in HTML5?
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
All the mentioned attributes are deprecated in HTML5.
💡Key Conceptual Anchor:Html5
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following element is removed by HTML5?
Correct Answer: Option B — dir
Detailed Academic Explanation:
dir is rarely used, and provides similar functionality to unordered lists.
💡Key Conceptual Anchor:Html5
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a newly added element in HTML5?
Correct Answer: Option D — frameset
Detailed Academic Explanation:
frameset is usability concerns.
💡Key Conceptual Anchor:Html5
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ defines the accelerator key to be used for keyboard access to an element.
Correct Answer: Option B — accesskey
Detailed Academic Explanation:
The accesskey attribute specifies a shortcut key to activate/focus an element.
💡Key Conceptual Anchor:Html5
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content?
Correct Answer: Option B — header
Detailed Academic Explanation:
The header element represents a container for introductory content or a set of navigational links.
💡Key Conceptual Anchor:Html5
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following element sets is an item of microdata?
Correct Answer: Option A — itemscope
Detailed Academic Explanation:
The itemscope attribute is a boolean attribute. An element with the itemscope attribute specified creates a new item, a group of name-value pairs.
💡Key Conceptual Anchor:Html5
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
___________ defines a group of content that should be used as a figure and may be labeled by a legend element.
Correct Answer: Option A — figure
Detailed Academic Explanation:
The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
💡Key Conceptual Anchor:Html5
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which element is used to define a discrete unit of content such as a blogpost, comment, and so on?
Correct Answer: Option B — class
Detailed Academic Explanation:
The article tag contains a standalone piece of content that would make sense if syndicated as an RSS item, for example a news item.
💡Key Conceptual Anchor:Html5
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
HTML5 documents may contains a ___________ element, which is used to set the header section of a document.
Correct Answer: Option A — header
Detailed Academic Explanation:
The header tag is used to contain the header content of a site.
💡Key Conceptual Anchor:Html5
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which element may be used within content to represent material that is tangential?
Correct Answer: Option A — aside
Detailed Academic Explanation:
The aside tag defines a block of content that is related to the main content around it, but not central to the flow of it.
💡Key Conceptual Anchor:Html5
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
___________ contains the navigation menu, or other navigation functionality for the page.
Correct Answer: Option C — nav
Detailed Academic Explanation:
The nav element is for marking up the navigation links or other constructs (eg a search form) that will take you to different pages of the current site, or different areas of the current page.
💡Key Conceptual Anchor:Html5
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following attribute is used to display date/time content?
Correct Answer: Option B — datetime
Detailed Academic Explanation:
To provide both human and machine-friendly date/time content, the element supports a datetime attribute, which should be set to the previously mentioned date format of YYYY-MM-DDThh:mm:ssTZD.
💡Key Conceptual Anchor:Html5
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The element ___________ simply groups items within an enclosed dd tag, though it may associate them with a caption defined by a dt tag
Correct Answer: Option A — object
Detailed Academic Explanation:
HTML documents are delivered as “documents”.These are then parsed, which turns them into the Document Object Model (DOM) internal representation, within the web browser.
💡Key Conceptual Anchor:Html5
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following element is used for highlighting content similarly to how a highlighter pen might be used on important text in a book?
Correct Answer: Option C — mark
Detailed Academic Explanation:
The mark tag defines marked text and is used to highlight parts of your text.
💡Key Conceptual Anchor:Html5
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
To insert a video, we use a video tag and set its src attribute to a local or remote URL containing a playable movie.
Correct Answer: Option A — True
Detailed Academic Explanation:
To show a video in HTML, use the video element.
💡Key Conceptual Anchor:Html5
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which tag is used to encapsulate navigation and then style the elements appropriately as menu items?
Correct Answer: Option D — both a and b
Detailed Academic Explanation:
Conventionally, many Web developers have used and tags to encapsulate navigation and then styled the elements appropriately as menu items. This seems to introduce quite a bit of ambiguity in markup because it may be difficult to determine the difference between a list that has links in it and a list that is simply navigation.
💡Key Conceptual Anchor:Html5
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ can be used to advise the browser to download media content in the background to improve playback.
Correct Answer: Option B — autobuffer
Detailed Academic Explanation:
It suggests to the browser that it should load as much of the resource as possible. As long as the browser’s own media cache isn’t full, it will keep on downloading.
💡Key Conceptual Anchor:Html5
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The _________ element is used to render simple graphics such as line art, graphs, and other custom graphical elements on the client side.
Correct Answer: Option C — canvas
Detailed Academic Explanation:
The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images.
💡Key Conceptual Anchor:Html5
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State true or False. “Prior to HTML5 in web market, traditionally, multimedia has been inserted with the concept of tag-based multimedia back”.
Correct Answer: Option B — False
Detailed Academic Explanation:
Traditionally,multimedia has been inserted with the embed and object elements, particularly when inserting Adobe Flash, Apple QuickTime, Windows Media, and other formats.
💡Key Conceptual Anchor:Html5
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which plugins can provide the fallback support for old browsers?
Correct Answer: Option C — both and b
Detailed Academic Explanation:
An attribute of the format: type=”application/x-shockwave-flash” will justify the purpose.
💡Key Conceptual Anchor:Html5
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What more needs to be achieved to fulfil the promises of the Open Web Platform?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
W3C CEO Jeff Jaffe states that “now that HTML5 is done, W3C should do more to strengthen the parts of the Open Web Platform that developers most urgently need for success.
💡Key Conceptual Anchor:Html5
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State whether the given statement is true or false. “HTML5 brings to the Web video and audio tracks without needing plugins”.
Correct Answer: Option A — True
Detailed Academic Explanation:
The World Wide Web Consortium (W3C) published a Recommendation of HTML5, the fifth major revision of the format used to build Web pages and applications, and the cornerstone of the Open Web Platform.
💡Key Conceptual Anchor:Html5
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which protocol is supported by Android browsers?
Correct Answer: Option B — HLS
Detailed Academic Explanation:
Android browsers support a new streaming protocol namedHTTP Live Streaming (HLS) implemented by Apple Inc.
💡Key Conceptual Anchor:Html5
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
__________ is a JavaScript library that implements the most common user interface elements and interactions like sliders, accordions, tabs, and so on.
Correct Answer: Option B — JQuery UI
Detailed Academic Explanation:
jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.
💡Key Conceptual Anchor:Html5
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should be loaded when the page loads.
Correct Answer: Option A — preload
Detailed Academic Explanation:
The preload property allows the author to provide a hint to the browser about what he/she thinks will lead to the best user experience. This attribute may be ignored in some instances.
💡Key Conceptual Anchor:Html5
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will happen if height and width of video are not set while video loads?
Correct Answer: Option A — page flickers
Detailed Academic Explanation:
If height and width are not set, the browser does not know the size of the video. The effect will be that the page will change (or flicker) while the video loads.
💡Key Conceptual Anchor:Html5
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following HTML Video – Media Type is not supported in IE?
Correct Answer: Option C — Ogg
Detailed Academic Explanation:
The Ogg container format with the Theora video codec and the Vorbis audio codec is supported in desktop/mobile Gecko (Firefox), Chrome, and Opera, and support for the format can be added to Safari (but not on iOS) by installing an add-on. The format is not supported in Internet Explorer in any way.
💡Key Conceptual Anchor:Html5
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ sets or returns the default speed of the audio/video playback.
Correct Answer: Option C — defaultPlaybackRate
Detailed Academic Explanation:
Setting this property will only change the default playback speed, not the current.
💡Key Conceptual Anchor:Html5
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ sets or returns the CORS settings of the audio/video.
Correct Answer: Option D — crossOrigin
Detailed Academic Explanation:
The purpose of the crossorigin attribute is to allow you to configure the CORS requests for the element’s fetched data.
💡Key Conceptual Anchor:Html5
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ returns a TimeRanges object representing the buffered parts of the audio/video.
Correct Answer: Option C — buffered
Detailed Academic Explanation:
A buffered range is a time-range of buffered audio/video. The user gets several buffered ranges if he/she skips in the audio/video.
💡Key Conceptual Anchor:Html5
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
There is an audio format supported across all browsers.
Correct Answer: Option B — False
Detailed Academic Explanation:
There are 3 formats that are used in HTML5 Audio and are .mp3, .m4a AAC also known as H.264 format.
💡Key Conceptual Anchor:Html5
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following browser does not support wav file format?
Correct Answer: Option D — Internet Explorer
Detailed Academic Explanation:
IE(Internet Explorer) does not support wav and Ogg file format.
💡Key Conceptual Anchor:Html5
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ sets or returns the volume of the audio/video.
Correct Answer: Option C — volume
Detailed Academic Explanation:
The volume property sets or returns the current volume of the audio/video.
💡Key Conceptual Anchor:Html5
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following attribute adds audio controls, like play, pause, and volume?
Correct Answer: Option B — controls
Detailed Academic Explanation:
The controls attribute is a boolean attribute. When present, it specifies that audio controls should be displayed.
💡Key Conceptual Anchor:Html5
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should start playing as soon as it is loaded.
Correct Answer: Option C — autoplay
Detailed Academic Explanation:
The autoplay attribute is a boolean attribute. When present, the audio will automatically start playing as soon as it can do so without stopping.
💡Key Conceptual Anchor:Html5
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should start over again when finished.
Correct Answer: Option A — loop
Detailed Academic Explanation:
The loop attribute is a boolean attribute. When present, it specifies that the audio will start over again, every time it is finished.
💡Key Conceptual Anchor:Html5
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ returns a MediaError object representing the error state of the audio/video.
Correct Answer: Option C — error
Detailed Academic Explanation:
The error property returns a MediaError object. The MediaError object has a code property containing the error state of the audio/video.
💡Key Conceptual Anchor:Html5
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In HTML Audio/Video DOM, __________ returns a TextTrackList object representing the available text tracks.
Correct Answer: Option D — textTracks
Detailed Academic Explanation:
The textTracks property returns a TextTrackList object. The TextTrackList object represents the available text tracks for the audio/video. Each available text track is represented by an TextTrack Object.
💡Key Conceptual Anchor:Html5
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following statement is not true?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All the statements regarding SVG are true.
💡Key Conceptual Anchor:Html5
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.
Correct Answer: Option C — getContext
Detailed Academic Explanation:
contextType is a DOMString containing the context identifier defining the drawing context associated to the canvas.
💡Key Conceptual Anchor:Html5
✓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.