Skip to content
Related Articles

Related Articles

Improve Article

Difference between XHTML and HTML5

  • Difficulty Level : Easy
  • Last Updated : 03 Aug, 2021
Geek Week

1. XHTML : 
XHTML stands for Extensible Hypertext Markup Language. It can be considered as a part of the XML markup language this is because of XHTML have features of both XML and HTML. XHTML is extended from XML and HTML. XHTML can be considered as a better version of HTML. 

2. HTML : 
HTML is the Hypertext Markup Language which is the most widely used language over the internet. HTML is used to create web pages and link them from one to another. Please note HTML is not a programming language, it is a markup language. We can use different other technologies as like CSS and javascript to give a new look to the pages developed by HTML. 

Difference between HTML and XHTML : 

 

S.No.HTMLXHTML
1.HTML stands for Hypertext Markup Language.XHTML stands for Extensible Hypertext Markup Language.
2.It was developed by Tim Berners-Lee.It was developed by W3C i.e World Wide Web Consortium.
3.It was developed in 1991.It was released in 2000.
4.It is extended from SGML.It is extended from XML and HTML.
5.The format is a document file format.The format is a markup language.
6.All tags and attributes are not necessarily to be in lower or upper case.In this, every tag and attribute should be in lower case.
7.Doctype is not necessary to write at the top.Doctype is very necessary to write at the top of the file.
8.It is not necessary to close the tags in the order they are opened.It is necessary to close the tags in the order they are opened.
9.While using the attributes it is not necessary to mention quotes.  For e.g. <Geeks>. While using the attributes it is mandatory to mention quotes.  For e.g. <Geeks=”GFG”>.
10.Filename extension used are .html, .htm.Filename extension are .xhtml, .xht, .xml.

 

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :