Are You
Compliant? Part III
by Outfront Moderator Katherine
Nolan (abbeyvet)
OutFront News Article: August, 2002
Creating a Compliant Template in FrontPage
When you create a new page in FrontPage you get a standard template page which is not a standards compliant page. It does not include a DTD and so you have to enter one manually on each new page. However the template can be edited.
Where the template is located may vary from system to system so you may need to root around a little to find it. On most systems it will be in:
C:\Program Files\Microsoft Office\Templates\1033\Pages\
and will be a HTML page called 'normal.tem'
Three small changes will make the page comply more closely with standards.
- Add a DTD to the top. Which one you chose to use is up to you, see more
here
- Edit the opening HTML tag to read:
<html lang="en"> - where the language is english, if it is in another language use the appropriate language code.
- Change the line that reads:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
to
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Again this assumes your page is in a Western European Language, if you are using a different charset, perhaps Chinese or an Eastern European language you will need to use the appropriate ISO code.
While you are there you can also add anything else you would like to appear with each new page. I have edited my template so that some meta tags and a stylesheet link are automatically included, so it reads as below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
<META HTTP-EQUIV="reply-to" CONTENT="info@inkkdesign.com">
<META HTTP-EQUIV="distribution" CONTENT="global">
<META HTTP-EQUIV="copyright" CONTENT="2002 et seq">
<link rel="stylesheet" type="text/css" href="">
</head>
<body>
</body>
</html>
Next week an intro to XHTML, the standard to which
we will all soon be moving en route to XML.
<<Part
II - Towards Becoming Compliant
<<
Part I - Introduction to Standards Compliance
|