Albin O. Kuhn Library & Gallery - Staff Wiki
XHTML Best Practices
XHTML is just a stricter form of HTML. If you were using well-formed HTML you shouldn't have any problems converting to XHTML. These tips will help you get started using XHTML. For more information on using XHTML check out the W3 Schools XHTML Tutorial at http://w3schools.com/xhtml/default.asp, or use the W3C Markup Validator at http://validator.w3.org/ to validate your web pages.
Use lower-case tags
<p>this is correct</p>
NOT
<P>this is incorrect</P>
Close all tags
<p>this paragraph has been properly closed</p>
NOT
<p>this is incorrect (no closing tag)
Add a / to all tags that aren't explicitly closed:
<br /> NOT <br>
<hr /> NOT <hr>
<img src="/img/aoklib.png" /> NOT <img src="/img/aoklib.png">
Properly nest all tags
All attribute names must be in lower case
All attribute values must be in quotes
Albin O. Kuhn Library & Gallery . University of Maryland, Baltimore County . 1000 Hilltop Circle . Baltimore MD 21250
(410) 455-2232. Questions and comments to: Web Services Librarian