Restated as a checklist you can apply to any markup: (1) doctype declared, (2) elements lowercase, (3) everything closed, (4) attributes quoted, (5) properly nested. These same habits make HTML5 cleaner too — which is the real reason to learn XHTML even though you'll author HTML5.