XHTML Document Validation
For validation of the XHTML syntax of a document , we must make three temporary changes to the document .
First we replace the HTML document type with the following XHTML 1.0 Strict standard document type :
<! DOCTYPE html PUBLIC "- //W3C//DTD XHTML 1.0 Strict//EN"
Second we must add the following attribute to html element:
xmlns = "http:www.w3.org/1999/xhtml"
This specifies the namespace used for the document , XHTML.
Third , we must comment out the meta element :
<!- <meta charset = "utf - 8" /> ->
After making these three temporary changes to a document , it can be validated with the Total Validator Tool , which provides a convenient way to validate documents against XHTML 1.0 Strict Standard . The validator programsare avilable at http:totalvalidator.com
The file name of the document to be validated is entered , including the path name , in Starting Web Page box . When the Validate button is clicked , validation system is run on the specified document.
The Total Validator Tool is a valuable tool for producing documents that adhere to XHTML 1.0 Strict standards . Validation ensures that a document is syntactically correct and more likely to display similarly on a variety of browsers . After validation , the document easily can be returned to its HTML form.