473,379 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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 1490
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

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

Similar topics

17
by: Phil Powell | last post by:
Where can I find an online PHP form validator script library to use? I have tried hacking the one here at work for weeks now and it's getting more and more impossible to customize, especially now...
6
by: Hernán Castelo | last post by:
should i to validate all the "Request"s calls like Request.FORM("...") and Request.Cookies("...") ???? if it is so, i have to see inside every "Input" elements like "Text" and even "Hidden"...
6
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334,...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
67
by: Scott Meyers | last post by:
I have a web site that, due to maintenance by several people, some of whom are fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point where I'm pretty sure it's suffering...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
6
by: serge calderara | last post by:
Dear all, I have read that ASP.NET does double user input validation of control when they are place on the page. Once on teh client side and again from server side right ? Could explain how...
8
by: goldtech | last post by:
Newbie esp about html validation - seems like something to strive for. Yet many pages even "enterprise" corporate type pages do not validate, yet seem to display well on most browsers. Two...
19
by: Ganesh J. Acharya | last post by:
Hi there, I want to redesign my website and make that look professional. I made this about 6 years ago with very little knowledge of internet. Today I am getting about 4000 visitors a day for...
1
by: Huntress3 | last post by:
Hi, I went to the validation site for my web site and received this report - The website pages are not validated as per the W3C standard. It is suggested here to get the pages validated for html...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.