Html Fonts_ Tags And Elements — Part 1 MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Html Fonts_ Tags And Elements — 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
All attribute declarations begin with the keyword ____________ followed by the element name, attribute name, attribute type, and default data information.
Correct Answer: Option C — ATTLIST
Detailed Academic Explanation:
Option C is the correct answer. In an HTML or SGML Document Type Definition (DTD), attribute declarations begin with the keyword ATTLIST . An ATTLIST declaration specifies the attributes that are allowed for a particular element, along with each attribute's type and default value. The general syntax of an attribute list declaration is: <!ATTLIST element-name attribute-name attribute-type default-value> Why Option A is incorrect: XML (Extensible Markup Language) is a markup language, not the keyword used to declare attributes in a DTD. Although XML supports DTDs, attribute declarations within a DTD still use the ATTLIST keyword. Why Option B is incorrect: SGML (Standard Generalized Markup Language) is the markup language standard from which HTML was originally derived. It defines the concept of DTDs, but SGML itself is not the keyword used to declare attributes. The actual declaration keyword is ATTLIST . Why Option D is incorrect: Option D is incorrect because ATTLIST is the standard keyword used for attribute declarations in SGML and DTD-based document definitions. Therefore, all attribute declarations begin with the keyword ATTLIST , making Option C the correct answer.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ________ declaration specifies which characters and delimiters may appear in the application.
Correct Answer: Option B — SGML
Detailed Academic Explanation:
SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Such a specification is itself a document type definition (DTD).
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The __________ defines the syntax of markup constructs and include additional definitions such as character entity references.
Correct Answer: Option D — DTD
Detailed Academic Explanation:
The DTD defines the syntax of markup constructs. The DTD may include additional definitions such as character entity references.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
A/An _________ is essentially a macro that allows a short name to be associated with replacement text.
Correct Answer: Option A — Entity
Detailed Academic Explanation:
Reserved characters in HTML must be replaced with character entities. Characters, not present on your keyboard, can also be replaced by entities.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ___________ keyword begins the declaration of attributes that an element may take. It is followed by the name of the element in question, a list of attribute definitions, and a closing.
Correct Answer: Option A — DOCTYPE
Detailed Academic Explanation:
In HTML 4.01, the !DOCTYPE declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The __________ begins with a series of parameter entity definitions.
Correct Answer: Option A — DTD
Detailed Academic Explanation:
The HTML DTD begins with a series of parameter entity definitions. A parameter entity definition defines a kind of macro that may be referenced and expanded elsewhere in the DTD. These macros may not appear in HTML documents, only in the DTD. Other types of macros, called character references, may be used in the text of an HTML document or within attribute values.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ______________ parameter identifies a character encoding, which is a method of converting a sequence of bytes into a sequence of characters.
Correct Answer: Option C — charset
Detailed Academic Explanation:
To display an HTML page correctly, a web browser must know the character set (character encoding) to use.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
A model group contains the names of the elements that a tag may enclose.
Correct Answer: Option A — True
Detailed Academic Explanation:
Most HTML and XHTML elements enclose content. If a content model is declared, it is enclosed within parentheses and known as a model group.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which event is fired as the mouse is moving over an element when a drag is occurring?
Correct Answer: Option A — dragover
Detailed Academic Explanation:
This event is fired as the mouse is moving over an element when a drag is occurring. Much of the time, the operation that occurs during a listener will be the same as the dragenter event.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The _________ event is fired on the element where the drop occurred at the end of the drag operation.
Correct Answer: Option B — drop
Detailed Academic Explanation:
The drop event is fired on the element where the drop occurred at the end of the drag operation. A listener would be responsible for retrieving the data being dragged and inserting it at the drop location.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property is common in all drag events?
Correct Answer: Option C — dataTransfer
Detailed Academic Explanation:
The dataTransfer property of all drag events holds data about the drag and drop operation.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
_____________ in textboxes and selections on web pages is done automatically, so you do not need to handle dragging yourself.
Correct Answer: Option B — Dragging Text
Detailed Academic Explanation:
Although the process is automatic, it is recommended that you always add data of the text/plain type as a fallback for applications or drop targets that do not support other types, unless there is no logical text alternative. Always add the plain text type last as it is the least specific.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Calling the ______________ method during both a dragenter and dragover event will indicate that a drop is allowed at that location.
Correct Answer: Option C — preventDefault
Detailed Academic Explanation:
Calling the preventDefault method during both a dragenter and dragover event will indicate that a drop is allowed at that location. However, you will commonly wish to call the preventDefault method only in certain situations, for example, only if a link is being dragged.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property is used to determine which drag operation was desired?
Correct Answer: Option C — dropEffect
Detailed Academic Explanation:
During the drop event, you should retrieve that data that was dropped from the event and insert it at the drop location. One can use the dropEffect property to determine which drag operation was desired.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the correct HTML for creating a hyperlink ? 1. <a>http://www.examveda.com</a> 2. <a name=”http://www.examveda.com”> examveda.com</a> 3. <a url=”http://www.examveda.com> examveda.com</a> 4. <a href=http://www.examveda.com> examveda.com</a>
Correct Answer: Option D — Option 4
Detailed Academic Explanation:
The correct HTML code for creating a hyperlink uses the tag with the href attribute to specify the link destination. Option 1: <a>http://www.examveda.com</a> - This is incorrect. The href attribute is missing, and the link text should be inside the tags. Option 2: <a name=”http://www.examveda.com”> examveda.com</a> - This is incorrect. The name attribute is not used for hyperlinks. Option 3: <a url=”http://www.examveda.com> examveda.com</a> - This is incorrect. The url attribute is not valid for hyperlinks. Option 4: <a href=http://www.examveda.com> examveda.com</a> - This is the correct answer. The href attribute specifies the URL of the page the link goes to.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the correct HTML code for inserting an image ? 1. <img>image.gif</img> 2. <img href=”image.gif/> 3. <img src=”image.gif”>
Correct Answer: Option C — Option 3
Detailed Academic Explanation:
The correct HTML code for inserting an image uses the tag with the src attribute to specify the image source. Option 1: <img>image.gif</img> - This is incorrect. The tag is self-closing and does not use a closing tag. Option 2: <img href=”image.gif”/> - This is incorrect. The href attribute is used for links, not images. Option 3: <img src=”image.gif”> - This is the correct answer. The src attribute specifies the path to the image. Option D: None of the above - This is incorrect because Option 3 correctly lists the HTML code for inserting an image.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
______________ should include data of two types; the first should be the URL using the type text/uri-list, and the second is the URL using the text/plain type.
Correct Answer: Option D — Dragging Links
Detailed Academic Explanation:
Dragging Links is the correct answer to “______________ should include data of two types; the first should be the URL using the type text/uri-list, and the second is the URL using the text/plain type.”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
A listener for the dragenter and dragover events are used to indicate valid drop targets, that is, places where dragged items may be dropped.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “A listener for the dragenter and dragover events are used to indicate valid drop targets, that is, places where dragged items may be dropped.”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
_____________ and elements in a document may be dragged using the application/x-moz-node type.
Correct Answer: Option C — Dragging Nodes
Detailed Academic Explanation:
Dragging Nodes is the correct answer to “_____________ and elements in a document may be dragged using the application/x-moz-node type.”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The tag which allows you to nest other HTML tags within the description 1. <CAPTION> 2. <TD> 3. <TR>
Correct Answer: Option A — Option 1
Detailed Academic Explanation:
Option 1 is the correct answer to “The tag which allows you to nest other HTML tags within the description 1. <CAPTION> 2. <TD> 3. <TR>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The first tag inside <TABLE> tag is 1. <HEAD> 2. <CAPTION> 3. <TH> 4. <TD>
Correct Answer: Option B — Option 2
Detailed Academic Explanation:
Option 2 is the correct answer to “The first tag inside <TABLE> tag is 1. <HEAD> 2. <CAPTION> 3. <TH> 4. <TD>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which tag will you add to specify a font for your whole page ? 1. <defaultfont> 2. <targetfont> 3. <basefont> 4. <font>
Correct Answer: Option A — Option 1
Detailed Academic Explanation:
Option 1 is the correct answer to “Which tag will you add to specify a font for your whole page ? 1. <defaultfont> 2. <targetfont> 3. <basefont> 4. <font>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The main container for <TR>, <TD> and <TH> is. 1. <DATA> 2. <GROUP> 3. <TABLE>
Correct Answer: Option C — Option 3
Detailed Academic Explanation:
Option 3 is the correct answer to “The main container for <TR>, <TD> and <TH> is. 1. <DATA> 2. <GROUP> 3. <TABLE>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The tag used for creating hypertext and hypermedia links is. 1. <HR> 2. <BR> 3. <PRE> 4. <A>
Correct Answer: Option D — Option 4
Detailed Academic Explanation:
Option 4 is the correct answer to “The tag used for creating hypertext and hypermedia links is. 1. <HR> 2. <BR> 3. <PRE> 4. <A>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct HTML tag for the largest heading. 1. <h1> 2. <h2> 3. <h4> 4. <h6>
Correct Answer: Option A — Option 1
Detailed Academic Explanation:
Option 1 is the correct answer to “Choose the correct HTML tag for the largest heading. 1. <h1> 2. <h2> 3. <h4> 4. <h6>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
To created a bulleted list, use 1. <ol> 2. <ul> 3. <il>
Correct Answer: Option B — Option 2
Detailed Academic Explanation:
Option 2 is the correct answer to “To created a bulleted list, use 1. <ol> 2. <ul> 3. <il>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What kind of list will <ol> tags create ?
Correct Answer: Option A — Numbered list
Detailed Academic Explanation:
Numbered list is the correct answer to “What kind of list will <ol> tags create”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The tag which is used to establish the absolute base for relative URLs used in the documents hypertext links. 1. <BODY> 2. <TITLE> 3. <BASE> 4. <BR>
Correct Answer: Option C — Option 3
Detailed Academic Explanation:
Option 3 is the correct answer to “The tag which is used to establish the absolute base for relative URLs used in the documents hypertext links. 1. <BODY> 2. <TITLE> 3. <BASE> 4. <BR>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The <BASE> tag is designed to appear only between 1. <BODY> 2. <HEAD> 3. <TITLE> 4. <PRE>
Correct Answer: Option B — Option 2
Detailed Academic Explanation:
Option 2 is the correct answer to “The <BASE> tag is designed to appear only between 1. <BODY> 2. <HEAD> 3. <TITLE> 4. <PRE>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
HTML tags are recognized by 1. <! 2. <= => 3. < >
Correct Answer: Option C — Option 3
Detailed Academic Explanation:
Option 3 is the correct answer to “HTML tags are recognized by 1. <! 2. <= => 3. < >”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct HTML tag to make a text bold 1. <bd> 2. <bold> 3. <bl> 4. <b>
Correct Answer: Option D — Option 4
Detailed Academic Explanation:
Option 4 is the correct answer to “Choose the correct HTML tag to make a text bold 1. <bd> 2. <bold> 3. <bl> 4. <b>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which tag adds a paragraph break after the text ? 1. <BR> 2. <P> 3. <PARAGRAPH> 4. <HR>
Correct Answer: Option B — Option 2
Detailed Academic Explanation:
Option 2 is the correct answer to “Which tag adds a paragraph break after the text ? 1. <BR> 2. <P> 3. <PARAGRAPH> 4. <HR>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
How can you make a list that list the items with numbers ? 1. <ul> 2. <list> 3. <ol>
Correct Answer: Option C — Option 3
Detailed Academic Explanation:
Option 3 is the correct answer to “How can you make a list that list the items with numbers ? 1. <ul> 2. <list> 3. <ol>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which tag will add rows to your tables ? 1. <tr> and </tr> 2. <th> and </th> 3. <td> and </td>
Correct Answer: Option A — Option 1
Detailed Academic Explanation:
Option 1 is the correct answer to “Which tag will add rows to your tables ? 1. <tr> and </tr> 2. <th> and </th> 3. <td> and </td>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is underline tag ? 1. <PRE> 2. <UL> 3. <U> 4. <HR>
Correct Answer: Option C — Option 3
Detailed Academic Explanation:
Option 3 is the correct answer to “Which of the following is underline tag ? 1. <PRE> 2. <UL> 3. <U> 4. <HR>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which tag can set the background color for your page ? 1. <body> 2. <font> 3. <head> 4. <title>
Correct Answer: Option A — Option 1
Detailed Academic Explanation:
Option 1 is the correct answer to “Which tag can set the background color for your page ? 1. <body> 2. <font> 3. <head> 4. <title>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
<P> is called
Correct Answer: Option A — Paragraph tag
Detailed Academic Explanation:
Paragraph tag is the correct answer to “<P> is called”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The <small> and <big> tags are special in what way ?
Correct Answer: Option C — They can be repeated
Detailed Academic Explanation:
They can be repeated is the correct answer to “The <small> and <big> tags are special in what way”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the correct HTML tag to left-align the content inside a table cell 1. <td leftalign> 2. <td align=”left”> 3. <td valign=”left”> 4. <td="left">
Correct Answer: Option B — Option 2
Detailed Academic Explanation:
Option 2 is the correct answer to “Choose the correct HTML tag to left-align the content inside a table cell 1. <td leftalign> 2. <td align=”left”> 3. <td valign=”left”> 4. <td="left">”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The tag which allows some Web server search engines to search your Web page. 1. <SEARCH> 2. <ISINDEX> 3. <HEAD> 4. <LINK>
Correct Answer: Option B — Option 2
Detailed Academic Explanation:
Option 2 is the correct answer to “The tag which allows some Web server search engines to search your Web page. 1. <SEARCH> 2. <ISINDEX> 3. <HEAD> 4. <LINK>”. This question is standard in competitive examination syllabi for Html Fonts_ Tags And Elements.
💡Key Conceptual Anchor:Html Fonts_ Tags And Elements
✓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.