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 technology architecture
  1. One

  2. Two

  3. Three

  4. Four

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

Struts provides five core tag libraries: bean, html, logic, nested, and tiles. However, the question may be referring to the four most commonly used ones (excluding nested or tiles depending on version). The core libraries are bean (for JavaBeans manipulation), html (for form/rendering), logic (for conditional logic), and tiles (for layout composition).

Multiple choice technology architecture
  1. Bean tag library

  2. Xml tag library

  3. Logic tag library

  4. HTml tag library

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

The three main Struts tag libraries are: Bean tags (for accessing JavaBeans and their properties), Logic tags (for conditional presentation and iteration), and HTML tags (for generating HTML forms and UI elements). There is no separate 'Xml tag library' - the HTML library is the third correct option.

Multiple choice technology web technology
  1. HTML 4.01

  2. HTML 1.0

  3. XHTML 2.0

  4. HTML 5.0

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

HTML 4.01 is unique as the last major HTML specification based on SGML (Standard Generalized Markup Language). HTML 1.0 was pre-standardization, XHTML 2.0 was XML-based, and HTML 5.0 represents a modern specification - making 4.01 least like the others in its SGML foundation.

Multiple choice technology web technology
  1. More robust formatting attributes for the font tag

  2. The ability to create dynamic, scriptable bitmapped images

  3. An API for saving data to client-side storage

  4. New tags for embedding audio and video in Web pages

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

HTML5 explicitly deprecated presentational tags like font in favor of CSS, so it would not add more formatting attributes to the font tag. The other options describe actual HTML5 features: the Canvas API creates dynamic bitmapped images, the Web Storage API provides client-side data persistence, and native audio/video tags were introduced.

Multiple choice technology web technology
  1. All tags must be closed, even stand-alone tags on a single line

  2. All image tags must include a name attribute

  3. All element and attribute names must be lowercase

  4. The document must specify a valid XHTML DOCTYPE

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

XHTML requires all tags to be properly closed, element and attribute names to be lowercase, and a valid XHTML DOCTYPE declaration. However, the name attribute for img tags is not required - the alt attribute is required for accessibility, but name is optional and deprecated in favor of id in XHTML 1.0 Strict and HTML5.

Multiple choice technology web technology
  1. Extended Markup Language

  2. EXtensible Markup Language

  3. Extension Markup Language

  4. Extensional Markup Language

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

XML stands for EXtensible Markup Language. The 'X' represents EXtensible, emphasizing that users can define their own tags and document structures, making it flexible for diverse data representation needs.

Multiple choice technology web technology
  1. Above statement is completely wrong

  2. Above statement is partially correct

  3. Above statement is fully correct

  4. Can't say

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

XML was indeed designed to transport and store data with focus on what data is, rather than how it looks. This separation of content from presentation is a fundamental XML principle, unlike HTML which emphasizes display.

Multiple choice technology web technology
  1. 1 & 2 is correct

  2. 2 & 3 is correct

  3. 4 & 5 is correct

  4. All are correct

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

All five statements correctly describe the relationship between XML and HTML. XML and HTML have different goals: XML describes data (what it IS), HTML displays data (how it LOOKS). XML is not a replacement for HTML - they serve complementary purposes. Statement 5 reinforces statements 3 and 4.

Multiple choice technology web technology
  1. Extended Markup Language

  2. EXtensible Markup Language

  3. Extension Markup Language

  4. Extensional Markup Language

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

XML stands for EXtensible Markup Language. The 'X' stands for 'Extensible' (not Extended, Extension, or Extensional), meaning users can define their own tags and document structures. This extensibility is XML's key feature.

Multiple choice technology web technology
  1. Above statement is completely wrong

  2. Above statement is partially correct

  3. Above statement is fully correct

  4. Can't say

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

XML was indeed designed to transport and store data, focusing on what data IS rather than how it looks. This is fundamental to XML's purpose - separating data content from presentation. The statement is fully correct.

Multiple choice technology web technology
  1. Extended Markup Language

  2. EXtensible Markup Language

  3. Extension Markup Language

  4. Extensional Markup Language

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

XML stands for EXtensible Markup Language. The 'X' stands for 'Extensible' (not Extended, Extension, or Extensional), meaning users can define their own tags and document structures. This is the exact same question as 134392.

Multiple choice technology web 2.0
  1. XML uses a description node to describe data

  2. XML uses a DTD to describe the data

  3. XML uses XSL to describe data

  4. None of the above

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

XML uses DTD (Document Type Definition) to describe and validate the structure and content of XML documents. DTDs define the legal elements, attributes, and their relationships, enabling parsers to verify that XML documents conform to the specified structure.