w3schools.com has an excellent explanation and tutorial on XHTML.
Their site lists the following most important differences between HTML and XHTML.
The Most Important Differences:
- XHTML elements must be properly nested
- XHTML elements must always be closed
- XHTML elements must be in lowercase
- XHTML documents must have one root element
The next link contains the code to add a closing tag to all break elements. One of my sites had over break elements 4,000 changes and two of them had over 3,000 break elements, so it's probably a good idea to run this procedure by itself. It took about 3 or 4 minutes to go through about 1,000 htm pages.
Change all <br> tags to <br />
I decided that at this time that I would change all of my file names to lowercase. It is not strictly necessary, but I wanted all of my XHTML elements to be in lower case, including the href property.
The next link goes through all file names and removes about 20 dangerous characters and it also changes the file name to lower case.
Change Files To Lower Case