Supported by :   My Law Forms Ltd. - Deed polls and Tenancy Agreements

You are currently browsing the XHTML help, using XHTML and CSS weblog archives for January, 2007.

XHTML Formatting – tag attributes

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=“”>My Site</a>

XHTML Formatting – closing tags

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:

XHTML Formatting – well formed XML

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.

Why use XHTML?

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 [...]