The code is not passing validation! Any ide why?

Hi everyone,
The following code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
<style type="text/css">

</style>
</head>
<body>
	
	
</body>
</html>

Yields the following notification when i check it in "http://validator.w3.org/check:

Can anyone explain me please what is my mistake?
Thanks

I think the validator fails to recognize windows-1255. Change it to utf-8 will pass.

Or you could check as XHTML 1.0 Transitional if windows-1255 must use.

I meant to say strict.

There’s something odd in your declaration, though I’m missing what it is (it could be the empty style and body elements). I recreated it though I used strict instead of transitional - you can change it to transitional if you really, REALLY need it…though I’d hope you’d rethink that since there’s little good reason to use transitional.


<!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" xml:lang="en" lang="en">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
  <title>Title of the document</title>
  <style type="text/css">
   P { color: #123123; }
  </style>
 </head>
 <body>
  <p>The content of the document......</p>
 </body>
</html>

Thanks Tom8…
My fault… After I had relaxed I fully read the error notification that says that i forgot to add “<title>”…
Stupid error ,and I’m sorry to have bothere you with that…

Thanks Maxwell. I wrote above what was the source of the error… Sorry to have bothered…

Sometimes, the only way I can find my own idiocy is to make a post about it. Not because someone has the answer for me, but because writing the problem and hitting submit (never before, sigh) makes the answer come to me. Lawlz.

Its a relief to know i’m not the only idiot in town :slight_smile: (sorry, just trying to joke…)

Card-carrying idiot here.
Was just looking for my pencil for 15 minutes. It was in my hand.

You dont need a pencil to write a post in a forum…

But I do need it to write down my grocery list. I’m not hip enough to buy a handheld telephone to do that for me… I write on little slips of paper.

Late to the party, first thing I noticed :smiley: