Hello guys,
I'm new to XML. Are XML and XHTML two terms for the same technology? Are they two different technologies? What is the difference between XML and XHTML? Can anyone answer these questions, please?
ok xhtml is a hybrid language of html and xml.
therefore xhtml takes the simplified tag elements of xml(ie making your own) and mixing them with the core of html elements tag.
xml is a huge family of languages(that has each its own complexity at first--once you get it is easy): xhtml,
xslt,xsd,and various industrail based languages(cheml etc).
Here is a couple of web sites that would get to the point:
xhtmlguru.com
wdvl.com(very good site)
xmlpitspot.com
from these you can get more sites and infomation
For books to read I would strongly recommend the Wrox press line of XML books
I've found that the best way to classify XHTML is "well-defined HTML". What this means is that traditional HTML was pretty forgiving in mistakes in syntax, like in not quoting attributes, or closing tags out-of-order, like the following:
<b><i><a href=mailto:yournamehere@domainname.com>This is an e-mail link</a></b>
This might produce some weird formatting, but would still allow the page to be loaded. XHTML is just well-writtyen HTML..and it makes migrating to XML more natural. In XML, formatting doesn't mess around...if there's any kind of syntactical anomaly, the entire page crashes. In XHTML, the previous example woul HAVE to be written as such:
<b><i><a href=mailto:"yournamehere@domainname.com">This is an e-mail link</a></i></b>
Notice how the <I> and <B> tags have to be closed in opposite order that they were opened in...and the HREF attribute for the <A> tag is in quotes. It isn't XML per se...but XML relies on the same properly-formatted rules as XHTML.
dear Ikramy,
wujen and jasonsalas gave you good description of XHTML and XML, but i'd like to add more:
=====================
What is XHTML
=====================
- XHTML stands for eXtensible HyperText Language
- XHTML is aimed to REPLACE HTML
- XHTML is almost IDENTICAL to HTML 4.01
- XHTML is a STRICTER and CLEANER version of HTML
- XHTML is HTML defined as an XML application
- XHTML is a combination of HTML and XML (eXtensible Markup Language)
- XHTML consists of all the elements in HTML 4.01 combined with the syntax of XML
=============================
XHTML is a Web Standard
=============================
XHTML 1.0 became an official W3C Recommendation January 26, 2000.
A W3C Recommendation means that the specification is stable, that it has been reviewed by the W3C membership, and that the specification is now a Web standard.
=============
Why XHTML?
=============
We have reached a point where many pages on the
"bad" HTML. The following code will work fine if you view it in a browser, even if it does not follow the HTML rules:
<HTML>
<HEAD>
<TITLE>This is bad HTML</TITLE>
<BODY>
<H1>Bad HTML
</BODY>
XML is a markup language where everything has to be marked up correctly, which results in "well-formed" documents. XML was designed to describe data and HTML was designed to display data.
Today's market consists of different browser technologies, some browsers run internet on computers, and some browsers run internet on mobile phones and palm pilots. The last-mentioned do not have the resources or power to interpret a "bad" markup language.
Therefore - by combining HTML and XML, and their strengths, we got a markup language that is useful now and in the future - XHTML.
XHTML pages can be read by all XML enabled devices AND while waiting for the rest of the world to upgrade to XML supported browsers, XHTML gives you the opportunity to write "well-formed" documents now, that work in all browsers and that are backward browser compatible !!!
Fore more information about XHTML, please refere to
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.