469,943 Members | 2,576 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,943 developers. It's quick & easy.

Can you help with validation of my site

8
The first error I get when I validate my site is:

Error Line 10 column 46: document type does not allow element "META" here.

<meta name="revisit-after" content="30 days" />
Nov 28 '06 #1
15 1428
AricC
1,892 Expert 1GB
You should validate your code. Here is an article about using META tags. First thing you should do is switch your doctype to strict:

[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/html]
Nov 28 '06 #2
garfy
8
why strict

i use transitional on all of my sites

can you please explain
Nov 28 '06 #3
AricC
1,892 Expert 1GB
You aren't transitioning from anything, transitional is to allow you to use deprecated tags.
Nov 28 '06 #4
steven
143 100+
As AricC already said (and I'm surprised drhowarddrfine hasn't lectured you yet), all new pages should use the strict DOCTYPE. You aren't transitioning from anything, so you don't use it. You should be coding in strict x/html now.
Nov 29 '06 #5
drhowarddrfine
7,435 Expert 4TB
Don't think I didn't notice.
Nov 29 '06 #6
AricC
1,892 Expert 1GB
From this day forth.... The use of strict doctype will be known as the "drhowarddrfine standard"!
Nov 29 '06 #7
drhowarddrfine
7,435 Expert 4TB
I've been saying that a long time but others say the same:
No more transitional doctypes, please
On Transitional Doctypes
And there are others.
Nov 29 '06 #8
AricC
1,892 Expert 1GB
That's funny they're even asking nicely!
Nov 30 '06 #9
garfy
8
Ok I changed it to strict and now I get 390 errors, before it was lees thatn that

can you be more specific why not to use transitional, will that hurt my site?

and is there a way to make a flv files validated, that is flash movie files not swf files?
Nov 30 '06 #10
drhowarddrfine
7,435 Expert 4TB
Part of the problem is you used the Xhtml doctype which has certain requirements, such as lower case in tags and different closing end tags. Use this one and see where you stand:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

It's the HTML strict doctype and you might as well use it and avoid the problems Xhtml will cause you.

The only purpose of transitional is transitioning older web pages that use deprecated code while adding newer code and trying to blend them together. It's a heads up for the browser when it interprets your code. The set of rules you are saying your are going to use.

Therefore, all new pages should use the strict doctype because you shouldn't be using deprecated code, that is, code that is going away, in new pages.
Nov 30 '06 #11
AricC
1,892 Expert 1GB
Ok I changed it to strict and now I get 390 errors, before it was lees thatn that

can you be more specific why not to use transitional, will that hurt my site?

and is there a way to make a flv files validated, that is flash movie files not swf files?
You don't need to validate flash files you only need to validate that the code around the flash files is correct. On to the doctype, you're still using transitional you should change to strict.
Nov 30 '06 #12
garfy
8
what do you mean by you do not have to validate the flash

if i use the flash swf file I have to use satay mode to validate it

and what about the flash movies FLA, how to validate that??
Dec 6 '06 #13
AricC
1,892 Expert 1GB
I don't know Flash but there isn't anything to validate but the code. You just need to embed the movie properly.
[html]<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object> [/html]
Dec 6 '06 #14
The first error I get when I validate my site is:

Error Line 10 column 46: document type does not allow element "META" here.

<meta name="revisit-after" content="30 days" />
I am pretty sure that the meta tags have to be in the head
Just make sure that the meta tag is in between your <head> and your </head>
Dec 8 '06 #15
AricC
1,892 Expert 1GB
The only two meta tags you need are robots and content.
Dec 8 '06 #16

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

17 posts views Thread by Phil Powell | last post: by
6 posts views Thread by Hernán Castelo | last post: by
6 posts views Thread by mike | last post: by
67 posts views Thread by Scott Meyers | last post: by
7 posts views Thread by Ryan Ternier | last post: by
6 posts views Thread by serge calderara | last post: by
8 posts views Thread by goldtech | last post: by
19 posts views Thread by Ganesh J. Acharya | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.