Welcome to XHTML
Good XHTML markup makes your content portable, accessible and future-proof.
Creating XHTML-compliant pages simply requires following a few simple rules.
Also, XHTML code can be easily validated online so you can be sure it 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