XHTML & HTML - Tutorials, Cheat Sheets, HTML Codes

XHTML has been introduced by W3C to gradually substitute plain HTML and prepare the web for a transition to a tidier, stricter code practice compatible with XML. XHTML is in effect a hybrid of XML and HTML, and while most websites are not serving it as XML yet (the correct MIME type is XML, put it can cause problems in some circumstances), serving it as as html/text still has a purpose while we wait for browsers and mobiles to adapt.

In general, it should be possible to convert an old HTML document to XHTML by following a few simple practices:

  • Properly open and close tags
  • Properly nest tags, taking care of closing them in the correct order
  • Learn how to use self-closing tags such as br and img
  • Only use supported and standard DOM events, attributes and meta tags

On this site we feature several cheat sheets and tutorials to help you transition to XHTML and understand it better, enjoy it!

Copyright © 2007 Legalxhtml.org. All Rights Reserved.
HTML & XHTML Codes | Sitemap | Landing Page Templates | Contact Us | Disclaimer & Credits