What are th differences between HTML and XHTML?
Please explain about both of them and which of them is better?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Phuc Nguyen8 reputationPosted May 10, 2014, 7:20 AM EDT
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.
The reason for XHTML to be developed was convoluted browser specific tags. Pages coded in HTML appeared different in different browsers.
See detail at: http://www.diffen.com/difference/HTML_vs_XHTML
and http://www.w3schools.com/html/html_xhtml.asp
Abhay ShankerRank #375 · 6.7K reputationPosted May 10, 2014, 8:06 AM EDT
http://www.webstandards.org/learn/articles/askw3c/oct2003/