Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
449 views
in Programming by (114k points)
closed by
Which of the following is TRUE only for XML, but not for HTML?
1. It is derived from SGML
2. It describes content and layout
3. It allows user defined tags
4. It is restricted only to be used with web browsers 

1 Answer

0 votes
by (115k points)
selected by
 
Best answer
Correct Answer - Option 3 : It allows user defined tags

Concept:

  • XML stands for extensible markup language which lets you define your own tags in the order they occur. It is derived from SGML (Standard Generalized markup language).
  • HTML doesn't allow user-defined tags.

  • XML is a platform-independent language. It is used to store and organize the data. The first line in the XML document is the XML prolog which includes XML declaration, DOCTYPE, version, and comments. XML documents must contain a root element. 
  • Comments can be used to include links, information, and terms in XML. They can be seen in source code only and appear anywhere in the code. Comments are for understanding the code.

Syntax for comment in XML is :

<!-- comment--- >

XML is slightly different from HTML. In HTML, we have predefined tags, while in XML we have to define our own tags. XML .XML is used for storing and transporting the data. Using the  XML sharing of data between two programs on different platforms is possible. 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...