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. 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.

Multiple choice
  1. start tag of an HTML element

  2. start tag of an HTML program

  3. end tag of an HTML element

  4. none of these

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

In HTML, attributes are always specified in the start tag (opening tag) of an element. End tags (closing tags) cannot contain attributes. This is a fundamental rule of HTML syntax - attributes like id, class, href, src always appear in the opening tag.

Multiple choice
  1. HTML pairs normally come in pairs.

  2. HTML tags are case sensitive.

  3. HTML tags are not used to mark up HTML elements.

  4. None of these

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

HTML tags typically come in pairs - an opening tag and a closing tag. For example,

...

,
...
. While some tags are empty (like
), the standard structure is paired tags. HTML is also case-insensitive, meaning

and

are treated the same.

Multiple choice
  1. Yes, they represent same elements altogether.

  2. Yes, both are different.

  3. <First> is correct only.

  4. They represent different elements and cannot be replaced.

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

HTML is case-sensitive for element names - and represent completely different elements. They are not interchangeable. While some browsers may be lenient, the HTML specification treats them as distinct tags.

Multiple choice
  1. Xtensible Markup Language

  2. Extensible Markup Language

  3. Extreme Markup Language

  4. None of these

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

XML (Extensible Markup Language) is a markup language that defines rules for encoding documents in both human-readable and machine-readable format. The 'X' stands for 'Extensible,' meaning users can define their own tags and document structure. Option A is incorrect because 'Xtensible' is a misspelling.

Multiple choice
  1. Flex

  2. OLE Automation

  3. ActiveX control

  4. Applet

  5. Macro processors

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

Macro processors have been used for language expansion (defining new language constructs that can be expressed in terms of existing language components), for systematic text replacements that require decision making, and for text reformatting (e.g. conditional extraction of material from an HTML file).

Multiple choice
  1. a fifth generation language

  2. WinZip

  3. URL

  4. hypertext markup language

  5. None of these

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

As the name suggests, it is a computer language in which markup symbols or codes inserted in files are displayed on a world wide web page.

Multiple choice
  1. tool

  2. language

  3. standard

  4. software

Reveal answer Fill a bubble to check yourself
C Correct answer