Forum Moderators: open
I am using the spider sim [searchengineworld.com ] to check out my site to make sure my keyword and description tags are working. But the don't seem to be apearing.
Here is what I have in my header.
<!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>
<titleMy Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta name="DESCRIPTION" content="Word Word Word Word Word Word Word Word, Word Word Word Word Word Word Word Word" />
<meta name="KEYWORDS" content="Word Word, Word Word, Word Word, Word Word, Word, Word, Word Word, Word" />
</head>
Now of course I am not doing a site about "Word" but I wasn't sure if my post would be edited with my original head tags in.
Can anyone spot why spider sim is not picking up the head tags?
Cheers folks
John
Your page isn't valid even without the typo on the title tag. As you're using XHTML, all the tags should be lower case, including meta tags. The robots meta tag is missing it's trailing slash as well (or you could delete it - it has no effect as you're allowing everything - which is the default). There has been concern in the past (but little evidence) that XHTML-style meta tags (ie with trailing slashes) caused problems for some spiders. Personally, I prefer HTML 4.01 over XHTML, but that's another topic.
[validator.w3.org...] should be the first address you visit when optimizing for the search engines. ;)
The missing > was a typo when taking out my actual title for posting on here.
Not really sure what the problem was to be honest but I think it might have had something to do with the xhtml. I descided to validate it and it complained about <meta not being valid in the DTD or something.
I changed the DTD to 4.01 transitonal and it seems to be fixed now.
Cheers
John
<meta name="KEYWORDS" content="Word Word, Word Word, Word Word, Word Word, Word, Word, Word Word, Word" />
While the one of the correct (XHTML) ways to close an "empty" element is <meta name....etc /> (space backslash closing tag) apparently the sim spider doesn't like this.. wether or not SE spiders feel the same way I don't know
solution when I came across it was to use the other way to close an XHTML element
<meta name="keywords" content="Word Word etc."></meta>
Suzy