Skip to content

What is the difference between XHTML and XML? I see books to learn both and I want to make sure I get best?

I want to learn website design, and I see books for both. I don’t want to waste my time learning outdated or too specialized stuff. Which one is better for a good, standard, attractive site? Thnx!

5 Comments

  1. fjgamer wrote:

    XHTML is HTML, just with a ‘x’.
    You would use XHTML in website design.

    XML is a way to store data in an organized but flat file format. XML is used in a variety of ways, but if you want to make websites, you’re better off looking into XHTML. Both languages are mark-up languages, though, so if you understand how one works, you should understand how both work.

    Again, get a XHTML book if anything, but honestly, you can learn everything online. You don’t need a book. I strongly suggest HTMLDog if you want to learn online: http://www.htmldog.com

    You will want to learn CSS, too.

    Wednesday, December 23, 2009 at 5:22 pm | Permalink
  2. Martin wrote:

    XML is more of a framework, not language. It is commonly used for data structure storage. xHTML has a similar syntax with XML. I would recommend xHTML.

    Wednesday, December 23, 2009 at 5:22 pm | Permalink
  3. marn wrote:

    XML is a general-purpose language in which you can create hundreds of different kinds of document. It is not only about creating web pages.

    XHTML is a language for designing webpages. It is a kind of XML.

    Wednesday, December 23, 2009 at 5:22 pm | Permalink
  4. Danriths V wrote:

    You might want to look for a book that covers (X)HTML and CSS if you want to know website design. Also check out w3schools and alistapart (see links below).

    (X)HTML is a language to define the structure and content of a webpage. CSS is to define the look-and-feel of a webpage.

    XML is a language to communicate data. It is not directly connected to website design. (X)HTML is simply HTML that is "XML Compliant" which is "best practices" but is not strictly necessary (hence why the (X) is in ()s).

    Wednesday, December 23, 2009 at 5:22 pm | Permalink
  5. frickentrevor wrote:

    –XHTML–

    XHTML is a stricter and cleaner version of HTML. XHTML is the best for creating secure or "clean" web pages.
    NOTE: You should have a little bit of HTML knowledge before you start working with it.

    –XML–

    XML was designed to carry data, NOT to display data. This means that you cannot create a "home.xml" web page. Also,
    XML tags are not predefined; you must define your own tags.
    For example:
    <date>28 July 2009</date>
    <name>frickentrevor</name>

    NOTE:
    You need to know a little JavaScript to work with it.

    Wednesday, December 23, 2009 at 5:22 pm | Permalink

Post a Comment

Your email is never published nor shared.