Practice high-yield Programming & Software Development MCQs on Basic Html — 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
State whether the given statement is true or false. !DOCTYPE is case sensitive”
Correct Answer: Option B — False
Detailed Academic Explanation:
In XML it is while in HTML it is not.
💡Key Conceptual Anchor:Basic Html
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct statement of HTML
Correct Answer: Option B — In traditional HTML close tag for some elements is optional but not encouraged
Detailed Academic Explanation:
Option B is the correct answer. In traditional HTML , the closing tag for certain elements is optional according to the HTML specification. For example, elements such as <li> , <p> , <tr> , and <td> may omit their closing tags because browsers can infer where the element ends. However, omitting closing tags is generally not encouraged since explicitly closing elements improves code readability, maintainability, and compatibility. Why Option A is incorrect: In XHTML , every element must be properly closed because XHTML is based on XML. Omitting a closing tag results in an invalid XHTML document. Therefore, it is incorrect to say that closing tags are optional in traditional XHTML. Why Option C is incorrect: Option C states "None of the mentioned" . This is incorrect because Option B correctly describes the behavior of traditional HTML regarding optional closing tags. Why Option D is incorrect: Option D claims that closing tags are optional in both HTML and XHTML. This is false because only HTML allows certain closing tags to be omitted. XHTML follows strict XML syntax, which requires every element to have a corresponding closing tag or to be written as a self-closing element where appropriate. Therefore, Option B is the correct answer because traditional HTML permits omission of closing tags for some elements, whereas XHTML requires all elements to be properly closed.
💡Key Conceptual Anchor:Basic Html
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a difference between HTML and XHTML
Correct Answer: Option A — Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
Detailed Academic Explanation:
Option A is the correct answer. The question asks for the statement that is not a valid difference between HTML and XHTML. Option A is incorrect because it contains factual errors. It refers to text/html and application/xml+xhtml as character sets (charsets), whereas they are actually MIME (Content) Types . In addition, the correct MIME type for XHTML is application/xhtml+xml , not application/xml+xhtml . Since the statement itself is incorrect, it cannot be considered a valid difference between HTML and XHTML. Why Option B is incorrect: Option B states "None of the mentioned" , which would be correct only if all the other options described valid differences. However, Option A is factually incorrect, so not all the listed statements are valid differences. Therefore, Option B cannot be the correct answer. Why Option C is incorrect: Option C states that tags and attributes are case-insensitive in HTML but not in XHTML . This is a genuine difference. HTML parsers generally treat tag and attribute names without regard to case, whereas XHTML follows XML rules and is case-sensitive. For example, <BODY> is accepted in HTML, but XHTML requires <body> . Since this statement correctly describes a difference, it is not the answer. Why Option D is incorrect: Option D states that special characters must be escaped using character entities in XHTML . XHTML is based on XML and therefore follows strict XML syntax rules. Characters such as & , < , and > must be escaped wherever required to ensure the document is well-formed. HTML is generally more forgiving and may tolerate certain unescaped characters in situations where XHTML would produce a parsing error. Therefore, this option also describes a valid difference. Hence, Option A is the only statement that is not a valid difference because it incorrectly describes MIME types as charsets and uses an invalid MIME type for XHTML.
💡Key Conceptual Anchor:Basic Html
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What indicates the content in file is HTML when delivered on the network.
Correct Answer: Option B — The “content-type” header
Detailed Academic Explanation:
Content-type: header indicates the content in file is html.
💡Key Conceptual Anchor:Basic Html
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”
Correct Answer: Option B — False
Detailed Academic Explanation:
HTML 4.01 and XHTML are different versions of HTML with slightly different rules. HTML 4.01 is more lenient and allows some coding errors. XHTML is stricter and requires well-formed code, meaning elements must be properly nested and closed. You can't directly combine parts of an XHTML document with parts of an HTML 4.01 document in the same file and expect it to work correctly in all browsers. The browser will likely try to interpret the entire document using one set of rules, which will lead to errors or unexpected behavior. Therefore, the statement "We can intermix XHTML and HTML 4.01 documents" is False.
💡Key Conceptual Anchor:Basic Html
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
HTML and XHTML stands for
Correct Answer: Option A — Hyper Text Markup Language and EXtensible HyperText Markup Language
Detailed Academic Explanation:
HTML and XHTML are abbreviated as mentioned in the correct option.
💡Key Conceptual Anchor:Basic Html
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct tag for largest heading in HTML.
Correct Answer: Option C — h1
Detailed Academic Explanation:
h1 is the largest while h6 is the smallest by convention for headings in HTML.
💡Key Conceptual Anchor:Basic Html
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following are table tags?
Correct Answer: Option A — table, thead, tr, td
Detailed Academic Explanation:
Table tags in HTML are used to create and structure tables. They include various tags to define the table structure, rows, headers, and data cells. Option A: table, thead, tr, td - This is the correct answer. These tags are all used in defining a table in HTML: table - Defines the table itself. thead - Defines the header section of the table. tr - Defines a table row. td - Defines a table data cell. Option B: colspan, table, tr - This is incorrect. While table and tr are table tags, colspan is an attribute, not a tag. Option C: table, tt, tr, td - This is incorrect. While table , tr , and td are table tags, tt is not a table tag; it represents teletype text. Option D: none of the mentioned - This is incorrect because Option A correctly lists table tags.
💡Key Conceptual Anchor:Basic Html
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct XHTML for width attribute and its value.
Correct Answer: Option B — width=”80″
Detailed Academic Explanation:
Always mention the attribute value in quotes and XHTML is case sensitive.
💡Key Conceptual Anchor:Basic Html
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following options follows content model in HTML? i. <ul> <p> Option one </p> </ul> ii. <ul> <li> Option two </li> </ul>
Correct Answer: Option B — ii
Detailed Academic Explanation:
Option B is the correct answer. According to the HTML content model, the <ul> (unordered list) element can contain only <li> (list item) elements as its direct children. Each <li> element may then contain text, paragraphs, images, links, or other valid HTML content. Why Option i is incorrect: In Option i, the <ul> element directly contains a <p> element. This violates the HTML content model because a paragraph cannot be a direct child of an unordered list. The correct structure is to place the paragraph inside an <li> element if needed. Why Option ii is correct: In Option ii, the <ul> element directly contains an <li> element, which is the required and valid structure for an unordered list. This follows the HTML specification for list elements. Why Option A is incorrect: Option A selects only i , which does not follow the HTML content model because the <ul> element contains an invalid direct child. Why Option C is incorrect: Option C states that both i and ii follow the content model. This is incorrect because only ii is valid. Why Option D is incorrect: Option D states that none of the options follow the content model. This is incorrect because ii is a valid HTML structure. Therefore, only Option ii follows the HTML content model, making Option B the correct answer.
💡Key Conceptual Anchor:Basic Html
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following markup is correct? i. <b><i> is in error as tags cross </b></i> ii. <b><i> is not since tags nest </i></b>
Correct Answer: Option B — ii
Detailed Academic Explanation:
Tags in HTML are always nested.
💡Key Conceptual Anchor:Basic Html
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a correct (X)HTML rule?
Correct Answer: Option D — Unknown attributes are ignored by the browser
Detailed Academic Explanation:
Browser ignores unknown attributes.
💡Key Conceptual Anchor:Basic Html
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Identify the count of mistakes in the following markup. <html> <head> </head> <body> <li> <ul><p> Hello </p></ul> </li> <br> <hr> </body> </html>
Correct Answer: Option B — 3
Detailed Academic Explanation:
<p> should not be in <li> ,<br> and <hr> shpuld be closed.
💡Key Conceptual Anchor:Basic Html
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Rendering engine is not responsible for
Correct Answer: Option D — none of the mentioned
Detailed Academic Explanation:
All the options mentioned are responsibility of rendering engine.
💡Key Conceptual Anchor:Basic Html
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Firefox uses _________ rendering engine.
Correct Answer: Option B — Gecko
Detailed Academic Explanation:
Gecko is a web browser engine used in many applications developed by Mozilla Foundation and the Mozilla Corporation as well as in many other open source software projects. Gecko is free and open-source software subject to the terms of the Mozilla Public License version 2.
💡Key Conceptual Anchor:Basic Html
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State true or false. It is faster to render HTML and CSS than to interpret and execute JavaScript.
Correct Answer: Option A — True
Detailed Academic Explanation:
When it comes to ordering your CSS and JavaScript, you want your CSS to come first. The reason is that the rendering thread has all the style information it needs to render the page. If the JavaScript includes come first, the JavaScript engine has to parse it all before continuing on to the next set of resources.
💡Key Conceptual Anchor:Basic Html
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the use of “defer” attribute?
Correct Answer: Option B — It defers script execution until the page has been rendered
Detailed Academic Explanation:
The defer attribute is a boolean attribute. When present, it specifies that the script is executed when the page has finished parsing.
💡Key Conceptual Anchor:Basic Html
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is used to read a HTML page and render it?
Correct Answer: Option A — Web browser
Detailed Academic Explanation:
A web browser (commonly referred to as a browser) is a software application for retrieving, presenting and traversing information resources on the World Wide Web.
💡Key Conceptual Anchor:Basic Html
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the first web browser?
Correct Answer: Option A — Nexus
Detailed Academic Explanation:
The first web browser was invented in 1990 called World Wide Web which was later renamed to Nexus.
💡Key Conceptual Anchor:Basic Html
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Who created the first web browser
Correct Answer: Option A — Tim Berners Lee
Detailed Academic Explanation:
Sir Timothy John “Tim” Berners-Lee, also known as TimBL, is an English computer scientist, best known as the inventor of the World Wide Web. He made a proposal for an information management system in March 1989, and he implemented the first successful communication between a Hypertext Transfer Protocol (HTTP) client and server via the Internet sometime around mid-November of that same year.
💡Key Conceptual Anchor:Basic Html
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State true or false. Nexus is first graphical web browser.
Correct Answer: Option B — False
Detailed Academic Explanation:
Netscape is first graphical web browser.
💡Key Conceptual Anchor:Basic Html
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The open source software version of netscape is
Correct Answer: Option B — Mozilla
Detailed Academic Explanation:
On February 23, 1998, Netscape Communications Corporation created a project called Mozilla to co-ordinate the development of the Mozilla Application Suite, the open source version of Netscape’s internet software, Netscape Communicator.
💡Key Conceptual Anchor:Basic Html
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not an IDE
Correct Answer: Option C — TextEdit(Mac)
Detailed Academic Explanation:
TextEdit is a highly versatile word processor included with OS X.
💡Key Conceptual Anchor:Basic Html
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
We can define ________ number of sites with one copy of dreamweaver installed on our computer.
Correct Answer: Option D — unlimited
Detailed Academic Explanation:
Dreamweaver is an IDE to build custom web apps and applications. There is no definite liit to it.
💡Key Conceptual Anchor:Basic Html
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What should we add to a template in Dreamweaver in order to control where page content goes?
Correct Answer: Option A — Editable Regions
Detailed Academic Explanation:
Editable template regions control which areas of a template-based page a user can edit.
💡Key Conceptual Anchor:Basic Html
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Blue Griffon is based on ________ rendering engine
Correct Answer: Option B — Gecko
Detailed Academic Explanation:
BlueGriffon is a new WYSIWYG content editor for the World Wide Web. Powered by Gecko, the rendering engine of Firefox, it’s a modern and robust solution to edit Web pages in conformance to the latest Web Standards.
💡Key Conceptual Anchor:Basic Html
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Swapping images in dreamweaver is best if
Correct Answer: Option C — The images are the same size
Detailed Academic Explanation:
It helps the transition when compressing the image.
💡Key Conceptual Anchor:Basic Html
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the inappropriate option with respect to Blue Griffon 1.5.2. Blue Griffon
Correct Answer: Option D — supports swapping of videos of any length
Detailed Academic Explanation:
This feature is not provide by the editor.
💡Key Conceptual Anchor:Basic Html
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State true or false. Maqetta is an open source initiative of the Dojo Foundation to geared towards visual designers through a WYSIWYG user interface.
Correct Answer: Option A — True
Detailed Academic Explanation:
Maqetta is an open source initiative of the Dojo Foundation to build an HTML5-based editor geared towards visual designers through a WYSIWYG user interface.
💡Key Conceptual Anchor:Basic Html
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct statement for HTML
Correct Answer: Option D — Both a and c
Detailed Academic Explanation:
Exo provides a free, cloud-based IDE that offers collaboration and deployment features. In addition to HTML5 and JavaScript, it supports the development of Java, Ruby, and Python applications.
💡Key Conceptual Anchor:Basic Html
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of following statement is true? i. Cloud9 has gained particular interest for its integration with GitHub and Bit Bucket authentication integration and real-time collaboration. ii. Cloud9 does not account for SSH and FTP access.
Correct Answer: Option B — i
Detailed Academic Explanation:
Cloud9 allows for SSH and FTP access and capabilities to work offline.
💡Key Conceptual Anchor:Basic Html
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a web server?
Correct Answer: Option B — BlueGriffon
Detailed Academic Explanation:
BlueGriffon is an IDE.
💡Key Conceptual Anchor:Basic Html
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State true or false. Tomcat is an open source web server that provides a servlet container allowing you to run Java code.
Correct Answer: Option A — True
Detailed Academic Explanation:
The answer is self explanatory.
💡Key Conceptual Anchor:Basic Html
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
LightTPD is not used by
Correct Answer: Option D — LocalHost
Detailed Academic Explanation:
LighTPD is an open source web server, designed and optimized for high performance environments.
💡Key Conceptual Anchor:Basic Html
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a prepackaged server stack?
Correct Answer: Option D — None of the mentioned
Detailed Academic Explanation:
All the options mentioned (WAMP, XAMPP, and MAMP) are prepackaged server stacks commonly used in web development to set up a local development environment. They include a combination of software components such as a web server (Apache), a database management system (MySQL or MariaDB), and a scripting language (PHP) to provide a complete server environment for hosting websites or web applications. Therefore, none of the mentioned options are not prepackaged server stacks.
💡Key Conceptual Anchor:Basic Html
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is not a channel of mozilla?
Correct Answer: Option B — Firefox alpha
Detailed Academic Explanation:
The answer is self explanatory.
💡Key Conceptual Anchor:Basic Html
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
State true or false. Google Chrome has its own task manager, which allows you to view and manage your memory and CPU usage”
Correct Answer: Option A — True
Detailed Academic Explanation:
The answer is self explanatory.
💡Key Conceptual Anchor:Basic Html
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following are automatically loaded and operates as a part of browser?
Correct Answer: Option B — Plug-ins
Detailed Academic Explanation:
Plugin programs are automatically loaded and operates as a part of browser.
💡Key Conceptual Anchor:Basic Html
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following allows user to view a webpage?
Correct Answer: Option D — Internet Browser
Detailed Academic Explanation:
The answer is self explanatory.
💡Key Conceptual Anchor:Basic Html
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is DOM in HTML?
Correct Answer: Option C — Convention for representing and interacting with objects in html documents
Detailed Academic Explanation:
The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML, and XML documents.
💡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.