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