Click to See Complete Forum and Search --> : validation issue


two4god07
01-08-2009, 01:27 PM
I use notepad to write my webpages. When I save, I change the encoding to utf-8.

On my webpage, the validator says that there is no encoding. I resaved if and re-uploaded it just incase I forgot to set the encoding, but the validator still says it isn't encoded. It always does this whenever I try to validate any page. Does anyone know what the problem is?

Charles
01-08-2009, 01:30 PM
It's not that you are not encoding your document the problem is that you aren't telling anybody what encoding you are using. Us the following template:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>

</body>
</html>

two4god07
01-08-2009, 01:35 PM
well there's something they forgot to mention on w3schools

thanks again.

Charles
01-08-2009, 05:46 PM
Read, mark, learn and inwardly digest http://www.w3.org/TR/REC-html40/ .

Scriptage
01-10-2009, 12:14 PM
HTML 4? Wow.