Forum Moderators: open
I've checked on other computers both PC and Mac, I've re-uploaded the page several time, rebooted, etc, etc, but the same thing happens. Does anyone know what I can do to fix this?
Thanks in advance.
The first thing to do when you get this kind of problem is to go to [validator.w3.org...] and validate your HTML. The validator will tell you what the errors are. If you're not sure what to do about the errors, then ask here again.
Hope this helps.
No DOCTYPE Found! Falling Back to HTML 4.01 Transitional
A DOCTYPE Declaration is mandatory for most current markup languages and without one it is impossible to reliably validate a document.
One should place a DOCTYPE declaration as the very first thing in an HTML document. For example, for a typical XHTML 1.0 document:
<!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" lang="en" xml:lang="en">
<head>
<title>Title</title>
</head>
<body>
<!-- ... body of document ... -->
</body>
</html>
If I'm honest, this really doesn't mean a lot to me. The page works perfectly, it's just that the pop up menus don't appear so I'm a little confused as to what I should do to fix this.
Can anyone help?
Does anyone know why this might be?
Thanks again for you help.
<Sorry, no personal URLs. See TOS [webmasterworld.com]>
[edited by: tedster at 12:45 am (utc) on Nov. 24, 2004]
You say the page works perfectly. It doesn't. It works by accident, and tomorrow it may not work.
There should be an option in Dreamweaver to tell it to generate a doctype. I should use that if I were you. And then validate your web page again.
[edited by: tedster at 12:46 am (utc) on Nov. 24, 2004]
I have addded the following code to my page, above <HTML>:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
This has fixed one of the errors specified by the validation site that you directed me to.
However, there are still many other errors listed. I guess I'll get busy trying to work out what those are about now, too.
Nevertheless, learning to write valid code is one of the best things you can do, IMO. You will comprehend HTML in an altogether new way - not as a layout program (which it isn't) but as a mark-up langauge (which it is.)
WYSIWYG editors like DreamWeaver, FrontPage etc try to build the illusion that HTML can be a layout tool, like Quark or something. That's a dangerous illusion and creates a very wrong-minded approach to web authoring. So, good for you for digging into all the validator's feedback.
the original question was about the "error on page" message. That message is not triggered by HTML errors but by scripting errors (jscript and vbscript usually). The W3C validator will not validate scripts, just mark-up.
Er, yes. Sorry, I wasn't thinking straight with my original reply. Apologies for any confusion I caused. I hope that everything is clearer now than it was.