Updating Existing HTML Documents to XHTML
If you already have several HTML documents that you wish to convert to XHTML then you can either use a utility tool, such as HTML-Kit, [see Utilities section] or edit the HTML mark-up code yourself.
Here are a few simple steps to updating your Web pages:
-
Make sure the HTML code is properly structure and that there are no over-lapping tag structures and that all optional end tags [such as </p>, </li> etc.] are present.
-
Make sure all attribute values are surrounded by quotation marks.
-
Convert all uppercase tag elements and attributes to lowercase.
-
Add trailing slashes at the end of every empty tag element [such as <hr />].
-
Add all the XML declarations to the top of every Web page if you want the document to be strictly formed.