Difference between XHTML and HTML5
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 :
Difference between HTML and XHTML :
S.No. HTML XHTML 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.