XHTML
Why XHTML?
How to Convert from HTML to XHTML
- Add an XHTML <!DOCTYPE> to the first line of every page.
- Add an xmlns attribute to the html element of every page.
- Change all element names to lowercase.
- Close all empty elements.
- Change all attribute names to lowercase.
- Quote all attribute values.
Differences from HTML
Related concepts
→
XHTML
→