What is the difference between HTML and XHTML?

XHTML (Extensible HyperText Markup Language) is a stricter version of HTML that follows XML syntax rules. XHTML requires tags to be properly closed, lowercase, and well-formed, while HTML is more lenient.

Example: in HTML

<img src="image.jpg">

in XHTML:

<img src="image.jpg" />