Thursday, March 29, 2012

SOFT6007 Validating XHTML

You will need to ensure that your code validates. You can check your code at http://validator.w3.org. Your pages should declare the document type correctly in order for it to validate. I recommend xhtml 1.0.

You will need to ensure that the start of your xhtml files look like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />

No comments: