Difference WikiWeb

Difference Between XHTML and HTML

ADVERTISEMENT

Main Difference

HTML and XHTML are the web languages. Main difference between the two is that HTML is SGML based while XHTML is XML based. For conform the XML standards, XHTML was derived from HTML. XHTML is strict to follow rules of coding as compare to HTML. HTML coded pages appeared different in different browsers so XHTML was developed to convolute browser specific tags.

What is HTML?

HTML stands for Hypertext Markup Language. It is used for creating web pages. It is based upon SGML. It has file extensions are .html and .htm. It was proposed by Tim Berners-Lee in 1987. Its internet media types are text / .htm. The type of format of HTML is document file.

ADVERTISEMENT

What is XHTML?

XHTML stands for Extensible Hypertext Markup Language. It is used for creating web pages. It is based upon XML and derived from HTML. It has file extensions include .xhtml, .xht, .xml, .html and .htm. ITs origin is from World Wide Web Consortium Recommendation in 2000. Its internet media types are applications / xhtml + xml. The type of format XHTML is Markup Language.

Key Differences

  1. HTML is SGML based while XHTML is XML based.
  2. HTML stands for Hypertext Markup Language while XHTML stands for Extensible Hypertext Markup Language.
  3. XHTML has file extensions of .xhtml and .xht while HTML does not have such extensions.
  4. XHTML is strict to follow rules of coding and structure as compare to HTML.
  5. HTML was proposed by Tim Berners-Lee in 1987 while origin of origin is from World Wide Web Consortium Recommendation in 2000.
  6. The type of format of HTML is document file while the type of format XHTML is Markup Language.
  7. HTML is developed by W3C & WHATWG while XHTML is developed by World Wide Web Consortium.
  8. HTML is the application of SGML ( Standard Generalized Markup language) while XHTML is application of XML.
ADVERTISEMENT

Comparison Video

YouTube video
Harlon Moss

Harlon currently works as a quality moderator and content writer for Difference Wiki. He graduated from the University of California in 2010 with a degree in Computer Science. Follow him on Twitter @HarlonMoss

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add difference.wiki to your ad blocking whitelist or disable your adblocking software.

×