So what is difference between XHTML(Extensible Hypertext Markup Language) and HTML(Hyper Text Markup Language).
Well here is not much difference in both languages you can say both are same just XHTML is an organized form of HTML.
Common Differences:
In HTML document you can use capital or small letters whatever you want like <HTML></html>,<BODY></BODY>,<head></head>
But in XHTML tags should be in small letters else they break XHTML rule like <html></html>, <head></head>, <body></body>
In HTML document input, image , line break, horizontal ruler and other similar tags do not have any end like they come in html like <br>,<img src=””>, <input type=””>, <hr>.
In XHTML these tags must have to be closed with /> like <img src=”” />, <input type=”” />, <br />, <hr />.
In HTML document if you do not close any tag like if you start <html> and do not close it at end of document, or start <h1> and do not end this that would not break html rule and that is ok with HTML.
In XHTML what you start you must have to close so if you start <html> you must have at end </html> and for all other tags else this will be breaking a rule.
In HTML document what you start first you can end between like if you start <p> and use <strong> inside and you close </p> first and </strong> after </p> that would be ok for html like <p><strong></p></strong>.
In XHTML what you start first should end at end you cant end that between or in mid of other tags like, you have to <h1><p><strong></strong></p></h1>.
HTML document start with <html> without defining any doctype(Document type.)
In XHTML you must have to start your document with
This defines which rules we have used in our xhtml document and when you verify your xhtml from w3c they check your document by transitional type.
We have transitional and strict XHTML documents. Transitional is where not much rules are there and mostly html type things are accepted, but in strict version you have to follow XHTML rules else your document would not be verified. Mostly we use transitional type if client insist we use strict type and that type starts with.
These are the most important differences in HTML and XHTML. Better to become a web developer.