Write two points of difference in HTML and XML. Write three points of well-formed XML document.
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:
| Furniture | Material | Quantity | Floor |
| Table | Wood | 75 | 1st |
| Chair | Plastic | 85 | 2nd |
4 views
1 Answers
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 along with 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.
4 views
Answered