MENU
Question -

Write two points of difference in HTML and XML. Write three points of well-formed XML document. Write the code to create an XML document to present following data: 



Answer -

Two points of difference between HTML and XML follows:

HTML

XML

HTML is a markup language that creates the form and appearance of the Web page.

XML is a text-based markup language for processing and displaying data in a structured format.

HTML documents are viewable in a browser.

XML documents can be viewed only if proper stylesheet file is also available alongwith XML file.

Three points of well-formed XML document are as follows:
1. The document must have a root element.
2. The element must have the opening and closing tags.
3. XML attributes values, should be in double quotation marks.
Table
Wood
75
1st
Chair
Plastic
85
IInd

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×