Forum Moderators: open
Jennifer
This is telling you that your server is not sending out information about what character encoding is in use for the page. More information about character encodings and web pages is available at
<http://www.w3.org/International/O-HTTP-charset>
(a future version of the Validator will provide that link in the error message).
Hope this helps?
Make sure your Metadata in this file is the same as all of your other files.
Depending on your language, your <HTML> tag and a meta tag may look like this:
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
That should validate.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="imagetoolbar" content="no">
<title> The Title of the Page </title>
<meta name="Description" content=" Description Goes Here ">
<meta name="Keywords" content=" Keyword List Goes Here ">
<meta name="Generator" content="WordPad">
<meta name="Date" content="2003-07-30">
<meta name="Author" content=" Author Details .">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta name="robots" content="index,follow">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"> @import url(stylemain.css); </style>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
The Generator, Date, and Author information isn't important for search engines, but can be useful for document version control when multiple people edit the pages, especially for companies.
The encoding information ought to go first, I guess, as I have heard that there are some issues with browsers designed for the far-East in that the page <title> at the top of the browser window may not display correctly if it is located before the encoding information for the page in the coding.
For comparison here is my standard head (using HTML4.01 Strict)..
[pre]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Blah blah blah</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="keywords" content="blah blah">
<meta name="description" content="blah.com specialise in selling blah">
<link rel="stylesheet" type="text/css" media="all" href="/styles/default.css">
<link rel="stylesheet" type="text/css" media="print" href="/styles/print.css">
</head>
[/pre]
On larger sites I also throw in
<link rel="home¦contents¦prev¦next etc as a special treat to those using more capable browsers :)