I just went through the process of making sure my site is XHTML 1.1 and CSS compliant. The W3C.org site has several validators that will inspect your code to make sure it is compliant. They will show line by line where there are problems in your code.
Bottom line is that my site had a lot of compliance issues. I got them fixed, but here are some of the gotchas I ran into cleaning up my design.
Since XHTML is a subset of XML, it follows all of the rules of having proper XML formating. I had a lot of breaking returns. Single tags require that you have a slash at the end, or a closing tag. Breaking returns should look like this;
It is also common to have paragraph returns in a single tag, but this is not proper either. Your paragraphs should be enclosed in beginning and end tags.
</font> Your paragraph here. </p></div> For the 1.1 compliance you need to adhere to strict XHTML. Targets attributes are not allowed in href anchor tags. I have used target="_blank" to open up new windows, but I have had to replace them with the following syntax;