Click to See Complete Forum and Search --> : xhtml vs xml


sharma-kapil
August 23rd, 2000, 07:05 PM
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

Lothar Haensler
August 24th, 2000, 02:57 AM
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

perceval90
December 21st, 2009, 09:50 PM
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

Roguebfl
January 12th, 2010, 05:44 PM
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