GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  XML
Go To First  |  Previous Question  |  Next Question 
 XML  |  Question 11 of 40    Print  
What is the main difference between XML and HTML?

  
Total Answers and Comments: 4 Last Update: September 11, 2007     Asked by: SachinDeo 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 27, 2007 19:35:04   #1  
NovyGill        

RE: What is the main difference between XML and HTML?
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>).
 
Is this answer useful? Yes | No
April 10, 2007 11:58:36   #2  
ebeworld        

RE: What is the main difference between XML and HTML?
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.

 
Is this answer useful? Yes | No
August 24, 2007 17:59:50   #3  
SS        

RE: What is the main difference between XML and HTML?
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.

 
Is this answer useful? Yes | No
September 11, 2007 07:25:40   #4  
Lohit        

RE: What is the main difference between XML and HTML?

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


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape