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
  1. define the structure with a list of legal elements

  2. to carry data

  3. to display data

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XML is designed primarily for data transport and storage, not display. It provides a structured, self-describing format for exchanging information between systems. HTML focuses on presentation, while XML focuses on what the data IS, making it ideal for APIs, configuration files, and data interchange.

Multiple choice
  1. to specify the minimum number of lines in an element

  2. specify the max number of lines

  3. specify the number of lines from the right of a page

  4. none of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The orphans property in CSS paged media specifies the minimum number of lines that must appear at the bottom of a page. It prevents awkward page breaks that leave single lines stranded. It's often used with 'widows' (minimum lines at top of next page) for proper typography.

Multiple choice
  1. underlined text

  2. pre-formatted text

  3. subscripted

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The xmp (example) tag displays pre-formatted text exactly as written, preserving whitespace and line breaks. Unlike 'pre', xmp also escapes HTML tags within it so they display as text rather than rendering. Both are deprecated in favor of 'pre' or 'code' tags with proper entity encoding.

Multiple choice
  1. 20

  2. 28

  3. 25

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XHTML 1.0 is organized into 28 modules that define the various elements and attributes. These modules can be combined to create different XHTML document types (Strict, Transitional, Frameset), allowing for flexible document composition.

Multiple choice
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

All XML-based documents, including XHTML, must have exactly one root element to be well-formed. In XHTML, this is typically the element that encloses the entire document structure (head and body).

Multiple choice
  1. HTML

  2. WNL

  3. CSS

  4. XML

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In certain presentation or documentation systems, slide collections (decks) are referred to as WNL files. This appears to be specific terminology from a particular software platform or file format specification.

Multiple choice
  1. Database

  2. Extensions

  3. Domains

  4. Protocols

  5. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

File extensions are the suffixes at the end of a filename (like .doc or .htm) that tell the operating system which program should be used to open the file. They define the format of the data within the file.