HTML XHTML and XML can you explain to me. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

HTML XHTML and XML can you explain to me.

What are different html, xhtml and xml. And examples them. I want learn them, where i must go to learn them.

28th Nov 2016, 1:25 AM
lucky boy
lucky boy - avatar
5 Answers
+ 5
The original language of the World Wide Web is HTML (HyperText Markup Language), often referred to by its current version, HTML 4.01 or just HTML4 for short. HTML was originally an application of SGML (Standard Generalized Markup Language), a sort of meta-language for making markup languages. SGML is quite complicated, and in practice most browsers do not actually follow all of its oddities. HTML as actually used on the web is best described as a custom language influenced by SGML. XML and XHTML are quite different. XML (eXtensible Markup Language)grew out of a desire to be able to use more than just the fixed vocabulary of HTML on the web. It is a meta-markup language, like SGML, but one that simplifies many aspects to make it easier to make a generic parser. XHTML (eXtensible HyperText Markup Language) is a reformulation of HTML in XML syntax. While very similar in many respects, it has a few key differences. First, XML always needs close tags, and has a special syntax for tags that don’t need a close tag. In HTML, some tags, such as img are always assumed to be empty and close themselves.  Second, XML has draconian error-handling rules. In contrast to the leniency of HTML parsers, XML parsers are required to fail catastrophically if they encounter even the simplest syntax error in an XML document.  When XML and XHTML were first standardized, no browser supported them natively. To enable at least partial use of XHTML, the W3C came up with something called “HTML-compatible XHTML”. This is a set of guidelines for making valid XHTML documents that can still more or less be processed as HTML.
28th Nov 2016, 2:54 AM
Ankit Sanghavi
Ankit Sanghavi - avatar
+ 4
Html means hypertext markup language. From its name it is show that it only use to markup. It is used to design website. XHTML is pervious version of html. that is modern version of html4. It is based on html as well as XML. XML stands for EXtensible Markup Language. XML is a markup language much like HTML. Xml tags are predefine tag in xml. You have to define it by yourself.
28th Nov 2016, 2:26 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
there just older versions of HTML
28th Nov 2016, 1:27 AM
Ian
Ian - avatar
0
XHTML is basically HTML 4 and XML is like CSS but for Python
28th Nov 2016, 1:28 AM
Ian
Ian - avatar
0
How To Use Iframe like Same Style Same Design . which is use in codepen.io please anyone here help me?
28th Nov 2016, 5:15 PM
Inayat Ali
Inayat Ali - avatar