Thread: Xml Vs Html

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Xml Vs Html


    Hello Friends,


    What is the difference between XML and HTML?
    Is these both are same OR Not ??
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0
    No.

    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.

    HTML is about displaying information, XML is about describing information.

    Comments on this post

    • sir_drinxalot disagrees : see my post
  4. #3
  5. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    Hi,

    is it really so hard to read a Wikipedia article? You don't even have the read the whole thing, just the first few paragraphs.

    In case it's still too much for you:

    No, HTML and XML are not the same. In fact, they have little in common except the concept and (mostly) the syntax.

    HTML is a language specifically designed to describe web documents. It has elements that are useful for websites such as "button", "form" etc. XML, on the other hand, is a generalized data format. It isn't bound to a specific purpose. You can use it to store and transport any textual data (mathematical equations, a calendar, text documents etc.).

    Since the good old HTML has been rewritten in XML (under the label "XHTML"), you can view XHTML as a kind of "applied XML".
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0
    Originally Posted by JUR2012
    No.

    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.

    HTML is about displaying information, XML is about describing information.

    Thanks for your positive Reply .
    You explain it very well... You use an easy language that is understandable by everyone and i also understand it....
    Thanks for explain it ..........
  8. #5
  9. Known to taste like chicken
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    In front of my computer
    Posts
    399
    Rep Power
    311
    Originally Posted by JUR2012
    No.

    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.

    HTML is about displaying information, XML is about describing information.
    Not quite correct.

    HTML is about describing a web document's structure, and XML is a self describing document format with a much broader usage.

    HTML should NOT be used for styling, only for setting the document structure. CSS should be used for styling HTML documents.

    Comments on this post

    • Kravvitz agrees
    "Take thy beak from out my heart, and take thy form from off my door" - Homer J Simpson / Edgar Allan Poe

    Looking for a project Idea?
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Location
    USA
    Posts
    33
    Rep Power
    0
    http://www.kudos-india.com/technology/xml_02.htm , Here is the nice explanation for understanding Difference between XML and HTML.

IMN logo majestic logo threadwatch logo seochat tools logo