XHTML - Preparing for the Future / Nuts! Now Past
Without much noise a new standard has emerged on the Internet and it will have ripple effect for years to come and should have an immediate impact on how you code for the Web. XHMTL is the next version of the mark-up language that makes the Web work and will supercede HTML version 4.01 in the near future.
- W3 specs
- Web Developer's Intro to XHTML
- WebReview Our Last Hope for Clean Code
- CNet's Builder.com Expert View
- ZDNet Developer How XHTML will Reduce Your Coding Tasks Today!
- Lighthouse's XHTML bridges the gulf between HTML and XML
Why is XHTML import? It cleans up a lot of the inconsistencies in HTML and requires that you write good code. In future, web browsers will be less tolerant of loosely coded HTML (tags that aren't closed), and will balk. Here are the main points:
- XHTML is case sensitive; therefore, all elements (tags) and attributes should be lower case.
- Single elements are no longer used. Single elements are tags that do not have closing tags like <table> and </table>. Single tags must contain a backslasg <br /> (not the space before the /) or a closing tag.
- All attribute values MUST be enclosed within inverted comas (" ").
- All documents must be well formed. All tags must be properly nested.
- Document type definitions must be used on each document.