Vani, a class X student has recently completed her HTML course and just started learning XML. Help her in the following:
i. Mention her any one main difference between HMTL and XML.
ii. She has been told that “All major browsers have a built-in XML parser to access and manipulate XML”. Is this statement right or wrong?
iii. Explain her the purpose of comments in XML document.
iv. Tell her the syntax to put comments in XML documents.
v. Explain her the meaning of well-formed XML documents.
Answers
HTML - Hypertext Markup Language.
XML - eXtensible Markup Language.
(i) HTML vs XML:
HTML is not case-sensitive. It displays data.
XML is case sensitive.It describes information.
(ii) It is correct.
All major browsers have a built-in XML parser to access and manipulate XML.
(iii) XML comments:
Comments are used to make code more understandable to users.
(iv) Comment Syntax:
<!--Write something -- >
(v) Well formed:
An XML document with correct syntax is called well-formed document.
Hope it helps!
Answer: hey ! here is ur answer
Explanation:
i.Primary purpose of HTML is to design a webpage while XML is used to store and transport
the data.
ii.Right
iii.Comments are added as notes or lines for understanding the purpose of an XML code.
iv.A comment starts with <!-- and ends with -->.
Syntax for comments are as follows:
<!-- Comments -->
v. An XML document with correct syntax is called "Well Formed".