HTML was the old way and is often written in a "dirty" way or w/o necessarily following the rules but since the web is moving towards XML something has to be done about it so it became XHTML. Actually, most tags and codes looks the same, except that the rules were strictly implemented.
