what is the difference between HTML and XML?

Discussion in 'HTML & Website Design' started by dataentrycompany, Dec 10, 2010.

  1. #1
    please tell me solid differences between HTML and XMl.
     
    dataentrycompany, Dec 10, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    s_ruben, Dec 10, 2010 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    XML is great at describing the data you are handling. HTML is better at describing the structure of the data you are displaying. Originally for HyperText, that is, linking between documents. Extended Markup (XML) expands on that by allowing far more flexibility in describing document content. HTML is more rigid than XML, restricting itself to a defined set of elements while, in XML, you can define whatever you want. XML has its own programming language, XSLT, that can transform any XML into any other XML, including HTML. This means you can do wonderful things like, in your own data file, have this:
    
    <myrecipes>
    <recipe>cake</recipe>
    <recipe>pie</recipe>
    </myrecipes>
    
    Code (markup):
    but transform it into displayable HTML for the browser as:
    
    <h1>My Recipes</h1>
    <ul>
    <li>Cake</li>
    <li>Pie</li>
    </ul>
    
    Code (markup):
     
    drhowarddrfine, Dec 10, 2010 IP
  4. niliven

    niliven Well-Known Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    The main difference between HTML and XML is that HTML has predefined elements and attributes whose behavior is well specified, while XML does not work. Instead, document authors to create their own XML words that are specific to their application or business needs. XML vocabulary is currently a wide range of industries and applications from financial applications.
    Another difference between HTML and XML is that XML introduces the concept of regular Ness. Normal Ness XML to eliminate some of the ambiguities inherent in the transformation of markup languages such as HTML implementation of standards, such as radio frequencies, which all attributes are enclosed in quotation marks.
     
    niliven, Dec 10, 2010 IP
  5. shailenderkumar

    shailenderkumar Member

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    XML and HTML were designed with different goals:

    XML was designed to transport and store data, with focus on what data is
    HTML was designed to display data, with focus on how data looks

    HTML is about displaying information, while XML is about carrying information.
     
    shailenderkumar, Dec 12, 2010 IP
  6. prkishnani

    prkishnani Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hello..........

    Here are some differences between HTML and XML

    1) HTML is a presentation language while XML is neither programing nor presentation language.
    2) HTML is used to design a website while XML is use to transfer the data two application
    3) HTML only defines the data where as XML describes the data.

    Web Designer | Real Estate Web Design
     
    prkishnani, Dec 15, 2010 IP
  7. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #7
    HTML is NOT a presentation language.
    HTML doesn't define anything. It describes the structure of the document only.
     
    drhowarddrfine, Dec 15, 2010 IP
  8. Raymond_M

    Raymond_M Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Doesn't HTML Hold the content of the pages, and CSS handles the designing, as in styling of the page? I don't know anything about XML, but that is what I know about HTML/CSS
     
    Raymond_M, Dec 15, 2010 IP
  9. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #9
    Yes.....................
     
    drhowarddrfine, Dec 16, 2010 IP
  10. surbhi.gvt

    surbhi.gvt Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    HTML is the hyper text transfer language and it is so simple language, you can learn it in some time.With the help of html you can create website in a simple manner. for this you have to know about some tags for html.
    XML is the extensible markup language... and you can learn html and xml easily from w3schools.com...
     
    surbhi.gvt, Dec 17, 2010 IP
  11. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #11
    It is not. HTTP is but that's not a language either.
    ::rollseyes::
     
    drhowarddrfine, Dec 18, 2010 IP
  12. jay9268

    jay9268 Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    In html
    What is diffirence between Hyper-link and anchor tags
    pls........
     
    jay9268, Dec 18, 2010 IP
  13. MyEasyCpa

    MyEasyCpa Peon

    Messages:
    336
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Can anyone explain it to me in further detail?
     
    MyEasyCpa, Dec 18, 2010 IP
  14. SeabirdScripts.com

    SeabirdScripts.com Greenhorn

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #14
    A hyper link is a normal website link that will take you to the top of the intended webpage. An anchor tag is used to link to a specific place within a page...

    Example:
    hyperlink - www.website.com -> website.com homepage
    anchor tag - www.website.com/page.html#money -> website.com page named page and the section in the page they have titled money and placed anchor on.
     
    SeabirdScripts.com, Dec 19, 2010 IP
  15. kumarpyasa

    kumarpyasa Peon

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Hi dear
    There are many deference between HTML and XML.
    1. XML is not Predefined but HTML is Predefined.
    2. XML is xtensible Markup Language but HTML is Hyper Text Markup Language.
    3.HTML was designed to display data but XML is about carrying information.
    4.xml is case sensitive but HTML is not case sensitive.
    5.The xtention of the HTML .html/.htm but the extention of the XML id .xml.
     
    kumarpyasa, Dec 24, 2010 IP
  16. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #16
    It amazes me that, on DP alone, answers to questions like these last months and years and still contain little to no information (or even correct answers).
     
    drhowarddrfine, Dec 24, 2010 IP
  17. pandit12

    pandit12 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    HTML is the Hyper Text Markup Language and XML is the Extensible Markup Language.XML is not a replacement for HTML.

    XML and HTML were designed with different goals-

    XML was designed to transport and store data.
    HTML was designed to display data.
     
    pandit12, Dec 28, 2010 IP
  18. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #18
    See what I mean?
     
    drhowarddrfine, Dec 28, 2010 IP
  19. mintdesignnz

    mintdesignnz Peon

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    An XML file is good for universal storage of data.. you can process it to generate flat files, access files, or SQL files.
     
    mintdesignnz, Dec 28, 2010 IP
  20. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #20
    Well stated sir.

    Yep, this thread is going places lol...

    Nigel
     
    Nigel Lew, Dec 28, 2010 IP