CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: xhtml vs xml

  1. #1
    Join Date
    Aug 2000
    Location
    Chandigarh, India
    Posts
    429

    xhtml vs xml

    I'm confused, please help:
    How exactly is xhtml different from xml? I mean what are the things which xml supports and xhtml doesn't? It is said that xhtml allows us to define our own tags so isn't xhtml better than xml since we can also use formatting tags as well as user defined tags and if yes why do we still need xml?

    ~ ks

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: xhtml vs xml

    XML is for data,
    XHTML is for presentation, period.

    XHTML is an XML representation of HTML 4.
    It just defines a more strict HTML syntax. Writing XHTML documents is writing HTML documents that are well-formed in terms of XML.

    For details, refer to the specs at http://www.w3c.org


  3. #3
    Join Date
    Dec 2009
    Posts
    1

    Re: xhtml vs xml

    HTML is a markup language used for creation of web pages across different platforms and systems.
    XML is an extensible markup language that was created to keep the flexibility and strength of HTML while minimizing most of the complexity.
    XHTML combines the flexibility and strength of HTML and extensibility of XML.

    -----------------------------------
    http://www.examplesof.com/IT/xhtml.html

  4. #4
    Join Date
    Nov 2009
    Posts
    31

    Re: xhtml vs xml

    Quote Originally Posted by perceval90 View Post
    HTML is a markup language used for creation of web pages across different platforms and systems.
    XML is an extensible markup language that was created to keep the flexibility and strength of HTML while minimizing most of the complexity.
    XHTML combines the flexibility and strength of HTML and extensibility of XML.

    -----------------------------------
    http://www.examplesof.com/IT/xhtml.html
    you could describe is XML is to XHTML as SGML is to HTML

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured