Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kwhalen

macrumors newbie
Original poster
Any advice welcome. I am trying to learn valid (rather than seat-of-the-pants) html using strict 1.0 xhtml. Looks fine in browser but W3C validator says:
"No Character Encoding Found! Falling back to UTF-8. I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents."

Here is the html for the head:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset-iso-8859-1" />
<title>Information for sale in the information age</title>
<style type="text/css">
body { background-color: #FFFFFF;
color: #000000; margin-top: 2em; margin-left: 10%; margin-right: 10%;
font-family: Garamond, "Times New Roman", serif; line-height: 2em; }
h1, h3 {font-family: Arial, Verdana, sans-serif; padding: .3em; color: #000080; }
h1 { margin-left: -8%; font-size: 1.75em; }
h2 { font-family: Garamond, "Times New Roman", serif; font-size: 1.5em; margin-left: -4%; }
h3 { font-size: 1.25em; margin-left: -4%; }
h4 { font-size: .75em; margin-left: -8%; }
hr { width: 100%; color: #000080; }
</style>
</head>

Thanks,
Kathy
 
xhtml strict is really really strict. it exist and you would think its better, but it's not practical. i suggest using xhtml traditional, it's less anal. i usually code with strict in mind but then validate it in traditional because i dont want to spend several hours fixing a problem that doesn't really exist.

anyway, just copy and paste, this fixes it.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

you made a '=' sign a '-' was the fix
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.