Moving to XHTML
Creating XHTML compliant pages simply requires following a few simple rules. These rules may seem counter-intuitive or just a lot of extra work at first, but the benefits are significant and actually make coding sites much easier. Also, XHTML code can be easily validated online, so you can be sure your code is correctly written.
Here are the key requirements for successful validation of your XHTML code.
- Declare a DOCTYPE.
- Declare an XML namespace.
- Declare your content type.
- Close every tag, enclosing or non-enclosing.
- All tags must be nested correctly.
- Inline tags can't contain block-level tags.
- Write tags in lowercase.
- Attributes must have values and must be quoted.
- Use encoded equivalents for left brace and ampersand.
more about these requirements
This is a hyperlink to a page named more.htm in the same folder as the current page.
Lines 33 - 34