Enter a reason for deleting this comment
Is there a difference between HTML and XHTML? What is better about XHTML than HTML?
XHTML is an application of XML, which is quite a strict angle-bracket language.
HTML is an application of SGML, which is a much less strict angle-bracket language.
The margin for errors in HTML is much broader than in XHTML.
Are you sure you want to delete this post?
HTML and XHTML are both languages in which web pages are written. HTML is SGML based while XHTML is XML based. They are like two sides of the same coin. XHTML was derived from HTML to conform to XML standards. Hence XHTML is strict when compared to HTML and does not allow user to get away with lapses in coding and structure.
HTML(Hyper Text Markup Language ) is based on SGML . It is the markup language for developing web pages in a web browser. XHTML(Extensible Hyper Text Markup Language) extended version of HTML that is stricter and XML based. In XHTML Doctype is mandatory. It’s elements and attributes must be in lowercase. XHTML is better than HTML because It is well formed document.
(XHTML) is a family of XML markup languages that mirror or extend versions of the widely used Hypertext Markup Language (HTML), the language in which Web pages are formulated.
While HTML, prior to HTML5, was defined as an application of Standard Generalized Markup Language (SGML), a flexible markup language framework, XHTML is an application of XML, a more restrictive subset of SGML. XHTML documents are well-formed and may therefore be parsed using standard XML parsers, unlike HTML, which requires a lenient HTML-specific parser.