www.webdeveloper.com
Results 1 to 4 of 4

Thread: Difference in between HTML & XML

  1. #1

    Difference in between HTML & XML

    What is the difference between HTML & XML

  2. #2
    Join Date
    Jul 2012
    Location
    Bhopal
    Posts
    3
    HTML is an abbreviation for HyperText Markup Language while XML stands for eXtensible Markup Language.The differences are as follows:-

    1.HTML was designed to display data with focus on how data looks while XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is.

    2.HTML is a markup language itself while XML provides a framework for defining markup languages.

    3.HTML is a presentation language while XML is neither a programming language nor a presentation language.

    4.HTML is case insensitive while XML is case sensitive.

    5.HTML is used for designing a web-page to be rendered on the client side while XML is used basically to transport data between the application and the database.

    6.HTML has it own predefined tags while what makes XML flexible is that custom tags can be defined and the tags are invented by the author of the XML document.

    7.HTML is not strict if the user does not use the closing tags but XML makes it mandatory for the user the close each tag that has been used.

    8.HTML does not preserve white space while XML does.

    9.HTML is about displaying data,hence static but XML is about carrying information,hence dynamic.

  3. #3
    Join Date
    Feb 2011
    Posts
    231
    Hi,
    In XML you can create the name of the tags and attributes as you want.
    Basically, XML is used to store data that can easily be accessed /used by other aplications, like PHP, JavaScript, ActionScript, etc.

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Quote Originally Posted by SanjayBurman View Post
    HTML is an abbreviation for HyperText Markup Language while XML stands for eXtensible Markup Language.The differences are as follows:-

    1.HTML was designed to display data with focus on how data looks while XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is.

    2.HTML is a markup language itself while XML provides a framework for defining markup languages.

    3.HTML is a presentation language while XML is neither a programming language nor a presentation language.

    4.HTML is case insensitive while XML is case sensitive.

    5.HTML is used for designing a web-page to be rendered on the client side while XML is used basically to transport data between the application and the database.

    6.HTML has it own predefined tags while what makes XML flexible is that custom tags can be defined and the tags are invented by the author of the XML document.

    7.HTML is not strict if the user does not use the closing tags but XML makes it mandatory for the user the close each tag that has been used.

    8.HTML does not preserve white space while XML does.

    9.HTML is about displaying data,hence static but XML is about carrying information,hence dynamic.
    Completely wrong. HTML is the child of SGML and XHTML is the child of XML. If SGML and XML could be seen as brothers then HTML is the nephew of XML.
    On the other hand you are really comparing apples to oranges. SGML and XML don't really do anything, they are frameworks out of which you build mark up languages. They are all grammar and no vocabulary. HTML and XHTML have the grammar of the parent but share vocabulary. And both are for structuring documents and not for presentation.
    Last edited by Charles; 07-03-2012 at 09:48 AM.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles