Difference between HTML and XHTML
HTML | XHTML |
---|---|
HTML stands for Hypertext Markup Language. | XHTML stands for Extensible Hypertext Markup Language. |
It was developed by Tim Berners-Lee. | It was developed by W3C i.e World Wide Web Consortium. |
It was developed in 1991. | It was released in 2000. |
It is extended from SGML. | It is extended from XML and HTML. |
The format is a document file format. | The format is a markup language. |
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. |
Doctype is not necessary to write at the top. | Doctype is very necessary to write at the top of the file. |
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. |
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”>. |
Filename extension used are .html, .htm. | Filename extension are .xhtml, .xht, .xml. |
Lewd structure is used in HTML |
It contains a very strict structure. |
Difference between XHTML and HTML5
XHTML is an older, stricter version of HTML that follows XML rules. HTML5 is the latest and more flexible version, bringing in new features for better multimedia and web applications. HTML5 is simpler to use, while XHTML demands strict adherence to XML standards.
Table of Content
- XHTML
- HTML5
- Similarities in the XHTML and HTML5
- Difference between HTML and XHTML
- Conclusion