What is the main difference between XML and HTML?

Questions by SachinDeo   answers by SachinDeo

Showing Answers 1 - 4 of 4 Answers

NovyGill

  • Mar 27th, 2007
 

Unlike HTML, XML tags identify the data rather than specify how to display it. Whereas an HTML tag says something like, "Display this data in bold font" (<b>...</b>), an XML tag acts like a field name in your program. It puts a label on a piece of data that identifies it (for example, <message>...</message>).

  Was this answer useful?  Yes

ebeworld

  • Apr 10th, 2007
 

1. Xml is case sensitive
2. In xml, there is no predefined tags such as <b>
3. Eech element must be closed. <hr> should be as <hr >
4. Each attribute must be in enclosed by "".
5. Xml is for data, html is for visualization.

  Was this answer useful?  Yes

SS

  • Aug 24th, 2007
 

HTML is basically for the presentation of the data
It Uses predefined tags for the presentation of the data.

XML is for describing the data
User defined tags are used to describe the data structure and data.

  Was this answer useful?  Yes

Lohit

  • Sep 11th, 2007
 

XML
User definable tags
Content driven
End tags required for well formed documents
Quotes required around attributes values
Slash required in empty tags


HTML
Defined set of tags designed for web display
Format driven
End tags not required
Quotes not required
Slash not required

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions