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. Superset of SGML, which is an Extensible Mark-up Language

  2. Subset of SGML, which is an Extensible Markup Language

  3. Like SGML

  4. Either (1) or (3)

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

XML (Extensible Markup Language) was designed as a simpler subset of SGML (Standard Generalized Markup Language). While SGML is complex and powerful, XML retains the markup capabilities but with stricter, simpler rules that make it easier to use and process.

Multiple choice
  1. attributes

  2. objects

  3. interfaces

  4. elements

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

In the Document Object Model (DOM), NodeList, Element, and NamedNodeMap are all interfaces - abstract specifications that define the structure and behavior of objects. They are not specific objects themselves, but rather types that objects implement.

Multiple choice
  1. include the space which is between two double quotes

  2. include only spaces and characters

  3. include the space between the single quotes

  4. include thing like space character and tabs

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice
  1. <CAPTION>

  2. <TD>

  3. <TR>

  4. <TH>

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

The CAPTION tag is used within a TABLE structure to provide a title or description for the table. While TD, TR, and TH are structural elements for table data, rows, and headers, CAPTION specifically serves as a descriptive label for the entire table.

Multiple choice
  1. It is an extended style sheet language and is used for formatting.

  2. It is an extensible style sheet language and is used for editing.

  3. It is an extensible style sheet language and is used for formatting.

  4. It is an extensible language and is used for formatting.

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

XSLT (Extensible Stylesheet Language Transformations) is used to transform XML documents into other formats like HTML, plain text, or different XML structures. The 'extensible' refers to being part of the extensible stylesheet language family, and its primary use is formatting and transforming XML content.

Multiple choice
  1. <FORM> and <BODY>

  2. <BODY> and <HEAD>

  3. <TITLE> and <BODY>

  4. Only <HEAD>

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

The base tag specifies the base URL for all relative URLs in a document. It must be placed in the head section because it affects URL resolution throughout the entire document and must be established before any relative URLs are encountered in the body.

Multiple choice
  1. more than 30 characters

  2. more than 50 characters

  3. 15 characters or less than it

  4. 24 characters only

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

The deprecated dir (directory list) tag was historically specified to contain only short directory items, limited to 24 characters or less per item. This restriction was part of the original HTML specification for multi-column directory displays, though the tag is now obsolete.

Multiple choice
  1. It is a descriptive mark-up language.

  2. It describes the structure and behaviour of the web document.

  3. It is not the standard language of WWW.

  4. HTML is a plain text file.

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

HTML is indeed the standard markup language of the World Wide Web, making option C's claim that 'it is not the standard language of WWW' a false statement. Since the question asks what is NOT true about HTML, the false statement (C) is the correct answer. Options A, B, and D describe true facts about HTML.

Multiple choice
  1. This file can be created by using a simple text.

  2. This file may or may not have HTM or HTML file extension.

  3. This is a text file.

  4. None of these

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

HTML files require a .html or .htm extension to be properly recognized by browsers and operating systems. Option B's claim that they 'may or may not' have this extension is false, making it the correct answer to 'what is not true'. Options A and C describe true facts about HTML files being plain text files created with text editors.

Multiple choice
  1. empty tag

  2. format tag

  3. de-format tag

  4. none of these

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

The tag in HTML is an empty element, meaning it doesn't require a closing tag and doesn't contain any content. It's a self-closing tag that defines an input field. Format tags like or have opening and closing tags, while empty tags like , , and
do not.

Multiple choice
  1. HEAD element

  2. BASE element

  3. main element

  4. either (1) or (3)

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

The element is specifically designed to establish the base URL for all relative URLs in a document. It's placed in the section and provides a single point of reference for resolving relative paths. The HEAD element contains metadata, main is for content, and is the correct semantic choice.

Multiple choice
  1. XML that meets certain grammatical rules

  2. XML that doesn't contain DTD's

  3. XML which is full of formulas

  4. XML that meets certain grammatical rules outlined in the XML 1.0 specification

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

Well-formed XML is defined by the XML 1.0 specification as meeting specific grammatical rules including proper nesting, matching tags, correct attribute syntax, and proper entity encoding. Option D correctly references the XML 1.0 specification. Well-formedness is purely syntactic and doesn't require DTDs or validation.

Multiple choice
  1. These are the ways to create templates for out does type and follow inheritance principle.

  2. It is a document type declaration in XML.

  3. It is a part of name spaces.

  4. These are the ways to create templates for out does type and don't follow inheritance principle.

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

DTDs (Document Type Definitions) define templates for document structure but do not follow inheritance principles like XML Schema does. The option text has typos ('out does type' should be 'document type'), but the core concept is correct. DTDs are older and simpler than XML Schema, lacking features like inheritance and data types.

Multiple choice
  1. This is a document oriented model and is a parcer.

  2. This is a document object model and is a parcer.

  3. This is a coding cycle.

  4. This is a decoding cycle.

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice
  1. It forces a line break wherever you place it.

  2. It is an empty tag.

  3. It is used when we want to end a line.

  4. It has closing tag.

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

The
tag is an empty element in HTML that forces a line break without requiring a closing tag. It is self-closing and does not need a separate tag. This makes it unique among HTML elements that are not container elements.