Quote everything In order to become a ninja coder you will have to pass the quote test. The rule is simple: quote all attribute values, period. Hereâ€™s a GOOD example: <a href=â€œhttp://yoursite.comâ€>My Site</a>
You are currently browsing the XHTML help, using XHTML and CSS weblog archives for January, 2007.
Close those elements When youâ€™re creating valid xHTML youâ€™ll need to make sure that you always close your elements properly. When your element has some data in it make sure you add an end tag directly after your data. Consider the following examples:
The good thing, and sometimes the bad thing, about xHTML is that it requires strict attention to well-formedness and element and attribute capitalization. Hereâ€™s a quick guide that will make it easy for you to remember what to do and what not to do when youâ€™re marking up a document.
XHTML is the defacto web standard markup language when it comes to creating websites â€¦ at least for now. It’s a development of the old HTML 4 standard which is compliant with the newer XML standard and is transitional in many ways. When you create your website using valid XHTML you create a website that [...]