XHTML must be a well formed XML document. In other words every XHTML document is XML, but not every XML document is XHTML.
In simpler terms - "well formed" means all the tags need to close (or self close) and all attributes need to be in double quotes.
The other difference is that for an XHTML document to be valid it must to conform to the XHTML schema.
This was important when it was thought XML was so important it would eventually take over the world and so naturally it followed that the solution to every problem had to be more XML.
Fortunately the world saw sense before this ever became a reality.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
XHTML must be a well formed XML document. In other words every XHTML document is XML, but not every XML document is XHTML.
In simpler terms - "well formed" means all the tags need to close (or self close) and all attributes need to be in double quotes.
The other difference is that for an XHTML document to be valid it must to conform to the XHTML schema.
This was important when it was thought XML was so important it would eventually take over the world and so naturally it followed that the solution to every problem had to be more XML.
Fortunately the world saw sense before this ever became a reality.