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

Multiple choice technology web 2.0
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web 2.0
  1. <?xml version="1.0" />

  2. <xml version="1.0" />

  3. <?xml version="1.0"?>

  4. <?xml version="1.0"? />

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web 2.0
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web 2.0
  1. eXtensible Style Listing

  2. eXtensible Stylesheet Language

  3. eXtra Style Language

  4. eXpandable Style Language

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web 2.0
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web 2.0
  1. All XML documents must have a DTD

  2. All XML elements must be properly closed

  3. All XML elements must be lower case

  4. All XML elements must be uppercase

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web 2.0
  1. XML elements must be properly nested

  2. XML tags are case sensitive

  3. XML documents must have a root tag

  4. All the statements are true

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Hyper Text Markup Language

  2. Hyperlinks and Text Markup Language

  3. Home Tool Markup Language

  4. Hyper Terminal Mode Language

Reveal answer Fill a bubble to check yourself
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.