Which of the following statements regarding XML is/are True ? (A) XML is a set of tags designed to tell browsers how to display text and images in a web page. (B) XML defines a syntax for representing data. but the meaning of data varies from application to application (C) < Letter >, < LETTER > and < letter > are three different tags in XML. Choose the correct answer from the options given below:
(B) and (C) only
Let's analyze each statement provided in the question regarding XML to determine its truthfulness.
Statement (A) says: "XML is a set of tags designed to tell browsers how to display text and images in a web page."
Therefore, Statement (A) is false.
Statement (B) says: "XML defines a syntax for representing data, but the meaning of data varies from application to application."
Therefore, Statement (B) is true. XML provides the structure, but the semantics (meaning) are application-dependent.
Statement (C) says: "< Letter >, < LETTER > and < letter > are three different tags in XML."
Therefore, Statement (C) is true.
Based on our analysis:
The question asks which statements are true. Statements (B) and (C) are true.
| Statement | Content | Truth Value | Explanation |
|---|---|---|---|
| (A) | XML tells browsers how to display text/images. | False | HTML is for display; XML is for data. |
| (B) | XML defines data syntax, meaning varies by application. | True | XML provides structure; interpretation is application-specific. |
| (C) | < Letter >, < LETTER >, < letter > are different tags. | True | XML is case-sensitive. |
Thus, the correct option is the one that indicates statements (B) and (C) are true.
| Feature | XML | HTML |
|---|---|---|
| Purpose | Data storage and transport | Displaying data (structure and presentation) |
| Tags | User-defined (extensible) | Predefined set |
| Case-sensitivity | Yes | Generally No (though good practice for XHTML) |
| Syntax | Strict (e.g., all tags must be closed) | More lenient (browsers often forgive errors) |
XML is a powerful tool for data handling due to several key properties:
Understanding these core characteristics of XML is crucial for working with data representation and exchange on the web and in many other applications.
Which of the statements given below is/are correct?
It is always important and useful to include an 'alt' attribute on 'img' tag in HTML because
A. users who cannot see the image due to vision impairment can have a textual description of the image (which can be spoken aloud by a screenreader).
B. If the image fails to load (slow connection, broken path, etc.) then alt text is displayed instead.
C. SEO (Search Engine Optimization) benefits.
Choose the correct answer from the options given below :
Which tag is used to enclose any number of javascript statements in HTML document?
The definitions in an XML document are said to be_______ when the tagging system and definitions in the DTD are all in compliance.
How many different levels of heading does HTML support?
_______ specifies the HTML Element that you want to style.