Computer Knowledge

Markup and Web Languages

1,492 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. Yes

  2. No

  3. XML is not a database, it is a language

  4. None of these

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

XML cannot be used as database, as it does not contain any database functionality.

Multiple choice
  1. Title tag

  2. Head tag

  3. EM tag

  4. Form tag

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

The Body tag is usually used after Head tag because Head tag is used for Header after header, then comes Body.

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.