Difference between XML and HTML.

 Posted by Yogi1990 on 7/5/2011 | Category: HTML 5 Interview questions | Views: 4855 | Points: 40
Answer:

-Both XML and HTML are based on SGML – Standard Generalized Markup Language

Different goals
- XML was designed to describe data and to focus on what data is
- HTML was designed to display data and to focus on how data looks
- XML fundamentally separates content (data and language) from presentation; HTML specifies the presentation

- HTML explicitly defines a set of legal tags as well as grammar (intended meaning)
<Table>….</Table>

- XML allows any tags or grammar to be used hence eXtensible
<Book>….</Book>


Source: Google and my preparation | Asked In: Some interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Yogi1990