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
B
Correct answer
Explanation
XML and HTML serve different purposes. HTML is for displaying web pages in browsers with fixed presentation tags, while XML is for structured data storage and transport with customizable tags. XML was designed to complement HTML, not replace it. They are complementary technologies - HTML for display, XML for data. The statement is false because XML never aimed to replace HTML's presentation role.
-
<?xml version="1.0" />
-
<xml version="1.0" />
-
<?xml version="1.0"?>
-
<?xml version="1.0"? />
C
Correct answer
Explanation
The XML declaration is a processing instruction that defines version and encoding, which begins with ``. It must not contain a forward slash before the closing tag, making the selected syntax correct while the other choices are invalid.
B
Correct answer
Explanation
XML elements can be empty, containing no content or nested elements. Empty elements can be represented using a start tag followed immediately by an end tag, or using the self-closing shorthand notation. Therefore, the statement claiming that XML elements cannot be empty is false.
-
eXtensible Style Listing
-
eXtensible Stylesheet Language
-
eXtra Style Language
-
eXpandable Style Language
B
Correct answer
Explanation
XSL stands for eXtensible Stylesheet Language, which is used for transforming and presenting XML documents. This makes option B correct. Options A, C, and D propose incorrect expansions that don't represent the actual meaning of XSL in web technologies and XML processing.
A
Correct answer
Explanation
XML syntax rules strictly require all attribute values to be enclosed in either single or double quotes. Unlike HTML, omitting these quotation marks violates the well-formedness rules of the language, which causes XML parsers to fail and report syntax errors when reading the document.
-
All XML documents must have a DTD
-
All XML elements must be properly closed
-
All XML elements must be lower case
-
All XML elements must be uppercase
B
Correct answer
Explanation
Well-formed XML requires that every opening tag has a matching closing tag. A DTD is optional and not mandatory for all XML documents. XML tag names are case-sensitive but can be defined in either uppercase or lowercase, meaning there is no requirement forcing them to use only one specific casing.
-
XML elements must be properly nested
-
XML tags are case sensitive
-
XML documents must have a root tag
-
All the statements are true
D
Correct answer
Explanation
XML elements must be properly nested to avoid overlapping tags, and tags are case-sensitive. Additionally, every well-formed XML document requires exactly one root element enclosing all other elements. Because all three of these requirements are standard XML rules, the choice stating that all statements are true is correct.
-
Hyper Text Markup Language
-
Hyperlinks and Text Markup Language
-
Home Tool Markup Language
-
Hyper Terminal Mode Language
A
Correct answer
Explanation
HTML stands for Hyper Text Markup Language, which is the standard markup language for creating web pages. This makes option A correct. Options B, C, and D propose incorrect expansions that don't represent the actual meaning of HTML in web development and markup languages.
-
<heading>
-
<h1>
-
<head>
-
<h6>
B
Correct answer
Explanation
HTML headings use tags from
to , where represents the largest and most important heading on a page. The tag does not exist in HTML. The tag contains metadata, not visible content. is actually the smallest heading level.
C
Correct answer
Explanation
The
tag is the correct HTML element for inserting line breaks. It is a self-closing tag that creates a line break without starting a new paragraph. The other options (, , ) are not valid HTML tags.
-
<bold>
-
<bld>
-
-
<text="bold">
C
Correct answer
Explanation
The tag is the correct HTML element for making text bold. It is a semantic tag indicating bold text rendering. Options A and B use non-existent tags. Option D is incorrect HTML syntax.
-
-
<italic>
-
<text="italic>
-
<ui>
A
Correct answer
Explanation
The tag is the correct HTML element for making text italic. It is a standard HTML tag for italic text rendering. Option B uses a non-existent tag. Options C and D are incorrect HTML syntax.
C
Correct answer
Explanation
HTTPService uses GET as the default method when no method is explicitly specified. POST, PUT, HEAD, and DELETE must be configured through the method property. This default follows standard REST conventions for read operations.
-
Hyperlinks
-
Named anchors
-
Reference entities
-
None of the above
B
Correct answer
Explanation
Named anchors (using <a name="label"> or </a><a href="#label">) are used to create links to specific sections within the same HTML document, making them the primary mechanism for implementing a table of contents.
-
‘This is a blockquote’ will be underlined
-
‘This is a blockquote’ will be italicized
-
‘This is a blockquote’ will be made bold
-
‘This is a blockquote’ will appear with white spaces before and after it.