1.

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

Answer»

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



Discussion

No Comment Found

Related InterviewSolutions