|
||
Title: html and xml Post by ashutoshets on Mar 10th, 2012, 2:29am What is basic difference between html and xml. |
||
Title: Re: html and xml Post by towr on Mar 10th, 2012, 3:39am XML is stricter and more general. XML describes data, HTML describe content for the web. XML = eXtensible Markup Language HTML = HyperText Markup Language There's also XHTML which is like HTML except it follows the stricter rules of XML; for example that all tags must be closed, so you must use <br /> instead of <br> for linebreaks. |
||
Title: Re: html and xml Post by cartoonle on Dec 1st, 2012, 11:29am XML is broader term. HTML is language for web page definition based on XML. |
||
Title: Re: html and xml Post by towr on Dec 1st, 2012, 1:04pm I don't think that's correct. I'm pretty sure HTML existed before XML, so the former couldn't be based on the latter (unless we invent time-travel). |
||
Title: Re: html and xml Post by Grimbal on Dec 3rd, 2012, 1:37am There first was HTML. Then XML was created with the general syntax of HTML but much stricter. (And there is XHTML which is a HTML ported to the strict syntax of XML.) I think I know better now: There was something called SGML. HTML is an application of SGML for the representation of web pages. XML is an evolution of SGML, simplifying the syntax and adding the semantic of namespaces. |
||
Title: Re: html and xml Post by cartoonle on Dec 6th, 2012, 8:24am Well, that that's true, if we are precise. :) But HTML is very similar to XML, the basic difference is, that HTML is not as strict as XML. Not all tags need to be closed with ending tag and nesting is also not as strict ... and you can still get away with it in HTML. And yes, there's also XHTML which obeys XML strict rules and maintains HTML functionalities. This should be about right now, or? :) |
||
Title: Re: html and xml Post by rmsgrey on Dec 7th, 2012, 5:08am HTML has stricter semantics; XML has stricter syntax. With XML, provided your layout is in the correct form, there's no restriction on the actual data. With HTML, you can be sloppier with the format, but only a comparatively narrow range of tags are legal. |
||
Title: Re: html and xml Post by sc1ndy on Jan 8th, 2013, 5:29am HTML is based on XML and has rules of XML + its own so we can say that HTML is more restricted than XML. |
||
Title: Re: html and xml Post by rmsgrey on Jan 9th, 2013, 10:15am on 01/08/13 at 05:29:58, sc1ndy wrote:
HTML predates XML by 6 years, and not all valid HTML is valid XML (in particular, unclosed <br> tags are allowed in HTML but not in XML). Both do derive from SGML, so they're more like siblings than child and parent. |
||
Title: Re: html and xml Post by Mariko79 on Apr 2nd, 2013, 12:42pm Also the XML files is usefull for the crawling the sites by the search engine spiders ( many of search engine allow to submit your site only in XML format) |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |