Saturday, November 17, 2012

Answers > What Is the Difference Between XHTML and XML? I See Books to Learn Both and I Want to Make Sure I Get Best?

What Is the Difference Between XHTML and XML? I See Books to Learn Both and I Want to Make Sure I Get Best?

by nForms on June 6, 2012

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!

Tags: , , ,

Similar XForms | XML Posts

{ 5 comments… read them below or add one }

fjgamer August 23, 2011 at 9:35 am

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.

Martin August 23, 2011 at 9:35 am

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.

marn August 23, 2011 at 9:35 am

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.

Danriths V August 23, 2011 at 9:35 am

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).

frickentrevor August 23, 2011 at 9:35 am

–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.

Previous post:

Next post: