Computer Knowledge
Markup and Web Languages
1,701 Questions
Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.
HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility
Markup and Web Languages Questions
-
bold
-
italic
-
list
-
indented
A
Correct answer
Explanation
The STRONG tag in HTML indicates strong importance, which browsers typically display in bold style. Unlike the B tag which is purely visual, STRONG carries semantic meaning of importance. EM would display in italic, not bold.
-
display the numbered list
-
underline the text
-
display the bulleted list
-
bold the text
C
Correct answer
Explanation
The UL (Unordered List) tag in HTML creates bulleted lists. For numbered lists, you would use OL (Ordered List) instead. UL does not underline, bold, or create any other text formatting.
-
<OL></OL>
-
<DL></DL>
-
<UL></UL>
-
<LI></LI>
A
Correct answer
Explanation
The
tag (Ordered List) is used to create numbered lists in HTML. creates bulleted lists, creates definition lists, and
- is used for individual list items within either OL or UL. Ordered lists automatically generate sequential numbers for each item.
-
<LARGE></LARGE>
-
<BIG></BIG>
-
< SIZE ></SIZE>
-
<FONT></FONT>
B
Correct answer
Explanation
The tag in HTML is used to increase font size, displaying text in a larger size than the default. The tag doesn't exist in HTML, is deprecated in HTML5, and is not a valid HTML tag (size is specified as an attribute or via CSS).
-
Header
-
Body
-
both A and B
-
none of the above
C
Correct answer
Explanation
The tag can be placed in both the <HEAD> (Header) and <BODY> sections of an HTML document. Modern JavaScript is often placed at the end of the BODY for performance reasons, but placing scripts in the HEAD with the defer or async attributes is also common. Both locations are valid and serve different purposes.
-
start a new paragraph
-
break the line
-
end the current paragraph
-
none of the above
A
Correct answer
Explanation
The
tag in HTML defines a paragraph and starts a new paragraph block. It is different from
which only breaks the line. Option A correctly describes the primary function of the
tag.
-
Table heading
-
Table Records
-
Table row
-
none of the above
B
Correct answer
Explanation
In HTML tables, represents standard table data cells. While creates rows and defines headers, specifically handles the individual cell content. Option B correctly identifies this as table records/cells.
-
Ramanathan V. Guha
-
Vinod Khosla
-
Sabeer Bhatia
-
None of these
A
Correct answer
Explanation
Ramanathan V. Guha, an Indian computer scientist, co-developed the Meta Content Framework (MCF) while working at Apple's Advanced Technology Group. MCF was an important precursor to RSS and modern web syndication formats. The other options (Vinod Khosla, Sabeer Bhatia) are prominent Indian tech entrepreneurs but not associated with MCF.
-
Hyper Text Machine Language
-
Hyper Text Marking Language
-
Hyper Text Markup Language
-
Hyper Text Marker Language
C
Correct answer
Explanation
HTML stands for HyperText Markup Language, the standard language for creating web pages. It uses tags to structure content (headings, paragraphs, links) that browsers render as web pages. Option A incorrectly says 'Machine,' Option B incorrectly says 'Marking' (should be 'Markup'), and Option D incorrectly says 'Marker.' 'Markup' refers to the system of tags that mark (identify) how content should be displayed, not 'marking' or 'marker.'
-
eXtra Modern Link
-
eXtensible Markup Language
-
Example Markup Language
-
X-Markup Language
B
Correct answer
Explanation
The claimed answer B (eXtensible Markup Language) is correct. XML stands for eXtensible Markup Language, named because it allows users to define their own custom markup tags (extensibility). Options A, C, and D are incorrect as they are made-up expansions that don't represent the actual acronym.
-
<xml version="1.0" />
-
<?xml version="1.0"?>
-
<?xml version="1.0" />
-
None of the above
B
Correct answer
Explanation
The claimed answer B () is correct. The XML declaration must use a question mark at both the start and end, not a slash like regular tags. Option A incorrectly uses and />, Option C incorrectly uses /> instead of ?>, and Option D is incorrect since B is valid.
-
Yes
-
No
-
Sometimes
-
Can't say
A
Correct answer
Explanation
The claimed answer A (Yes) is correct. XML has strict, consistent rules (all tags must be closed, properly nested, case-sensitive), making it more predictable and easier for parsers to process than HTML, which has many exceptions and inconsistent tag-handling rules. Options B, C, and D are incorrect.
-
All the statements are true
-
All XML elements must have a closing tag
-
All XML elements must be lower case
-
All XML documents must have a DTD
B
Correct answer
Explanation
The claimed answer B (All XML elements must have a closing tag) is correct. XML requires every opening tag to have a corresponding closing tag (or be self-closed with />). Option C is incorrect because XML is case-sensitive but doesn't require lowercase. Option D is incorrect because DTD is optional in XML.
-
Internet Explorer 5.5
-
Netscape 4.7
-
RealPlayer
-
both 1 and 2
-
it contains a root element
-
it contain an element
-
it contains one or more elements
-
must contain one or more elements and root element must contain all other elements
D
Correct answer
Explanation
The claimed answer D is correct. A well-formed XML document must have exactly one root element that contains all other elements in a hierarchical tree structure. Options A and B are incomplete (single element requirement is insufficient). Option C is partially correct but doesn't emphasize the critical root element requirement.