Hi,
I Know HTML very well.Currently i am learning XML.I think the main difference berween html and xml is
XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks . HTML is about displaying information, while XML is about describing information.
The tags used to mark up HTML documents and the structures of HTML documents are predefined. · XML allows the author to define his own tags and his own document structure.Now i want to know Is there any other difference exists or any other special quality or feature available in XML?
Is there any other difference between between xml and html?
Moderator: General Moderators
-
Mora wacker
- Forum Newbie
- Posts: 2
- Joined: Tue Sep 11, 2007 1:21 am
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Yes, there's three letters different: x, h, and t. 
There's no major difference at the macro level, per se. However at the browser level, there's a fair difference. It often takes more to process an XML document (with a transform) into a useful web page for the browser than it does for the HTML. This is mostly due to the fewer number of files required to render the same page.
There's no major difference at the macro level, per se. However at the browser level, there's a fair difference. It often takes more to process an XML document (with a transform) into a useful web page for the browser than it does for the HTML. This is mostly due to the fewer number of files required to render the same page.
- The Phoenix
- Forum Contributor
- Posts: 294
- Joined: Fri Oct 06, 2006 8:12 pm
Re: Is there any other difference between between xml and ht
Hmm. Some of your understandings aren't quite right.Mora wacker wrote:Hi,
I Know HTML very well.Currently i am learning XML.I think the main difference berween html and xml is
XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks . HTML is about displaying information, while XML is about describing information.
The tags used to mark up HTML documents and the structures of HTML documents are predefined. · XML allows the author to define his own tags and his own document structure.Now i want to know Is there any other difference exists or any other special quality or feature available in XML?
- HTML isn't designed to focus on how data looks. Thats what CSS is for. HTML = data, CSS = presentation.
- XML = data (processed in a consistent and reliable fashion that computers can more easily process)
- XML does allow an author to define his own tags, but it is much more common to use an existing schema. Like 95% of the time.
HTML in almost all cases 'accepts liberally' - it is okay with errors, lies, and outright hacks. XML is extremely strict. It does not allow anything other than what the rules allow, PERIOD. Of course, the rules allow a huge amount, so thats not that bad of a trade off.
XML is more challenging for browsers, but paradoxically, easier for scripts to process. XML as a result is great for things like data, shared information sites, and so forth.
XHTML is black magic from the debil. To write a validating file, you have to slaughter a chicken under the full moon.
Just kidding. It doesn't have to be a full moon.