Forum Moderators: open

Message Too Old, No Replies

HTML Validation

HTML Validation

         

mooredb

10:09 pm on Dec 6, 2003 (gmt 0)

10+ Year Member



Can someone give me some insight on to why I got fatal error No doctype specified? I get this message when I try to validated my website. I think this might be due to redirecting but not for sure. I my website is a template built that I purchased from a company and they host it on their servers.

Should I be concerned if my page is being re directed and how can I tell if it is?

Thanks

Stefan

12:44 am on Dec 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, you've probably done this but best to ask...

Have you checked your code with Wordpad and looked for something like this at the top of the page,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

S

mooredb

12:51 am on Dec 7, 2003 (gmt 0)

10+ Year Member



It is not there. My website is a template and they will not allow me to change anything like that. I was just wondering if this reall hurts me - as far as PR goes?

Thanks

ytswy

12:53 am on Dec 7, 2003 (gmt 0)

10+ Year Member



Assuming, as mentioned, you have specified a Doctype this could be a case of your host putting their own code on your page.

A host I used <cough>easyspace</cough> put (bug ridden) Javascript banner code right at the top of all my pages - obviously this preceded the Doctype declaration and so made it worthless.

If this is happening to you, either pay for the *upgrade* to get rid of it, or change hosts.

ytswy

1:00 am on Dec 7, 2003 (gmt 0)

10+ Year Member



Sorry, didn't see your subsequent message.

If you don't have a Doctype at the top of your page then the error is normal.

I can't see it having any effect on any SE rankings, it simply tells all user agents to render this page in "quirks mode" - if your template was designed by someone who didn't specify a doctype this may be a good thing..

asquithea

1:01 am on Dec 7, 2003 (gmt 0)

10+ Year Member



Frankly, I'd change hosts. There are a goodly number of other hosts around offering excellent packages for small sums of money. Hosting features vary, but many include Perl, PHP, MySQL and direct FTP access.

To be sure, you'd have to write your own code instead of relying on a template, but duplicating a style from examples seen on the web is reasonably quick to do. As a user, I'd actually be attracted by a W3C validation icon on the page, but it's worth bearing in mind that I like to check! Without the icon, I wouldn't care unless there was a rendering problem.

[edited by: asquithea at 1:04 am (utc) on Dec. 7, 2003]

Stefan

1:03 am on Dec 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is not there. My website is a template and they will not allow me to change anything like that. I was just wondering if this reall hurts me - as far as PR goes?

It won't really hurt you as far as the Search Engines go, but it's best to have validated code and that requires a doctype.

You can get shared hosting very cheap... perhaps when you've put spent a bit more time with your site you might consider moving it to a new hosting company. For under 20 Euros/month, (about 25 US$), you can get good shared hosting that won't put those restrictions on you.

mooredb

3:49 am on Dec 7, 2003 (gmt 0)

10+ Year Member



Thank you everyone for responding. I am a newbie on the forum... I do agree about switching hosting companies and creating a new website. However, the hosting company is providing me with a great website with many features that would cost me $$$$ if I had to get someone to design it (maybe I don't know)! So that is the reason why I am sort of stuck with them right now, at least until make more $$$$. The site is very professional looking for my industry. Also they just finally changed and made their templates search enigne friendly - In HTML....This should Help I hope.

Thanks

steelrane

7:40 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



I have the same problem I get the same message no DOCTYPE I built my sites in FP and even before I publish them they didn't have DOCTYPE at the top is this somthing that is to be put in by my host or can I put it in myself? I did try to put a DOCTYPE in but it just showed up as text at the top of my page.
Please help

robert adams

11:27 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



Look at the source for almost any web page, including this one, and you will find:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
or something like it. If you don't put the <! in then it will show up as text on your page.
If you don't use FP you don't have half of these problems.

robert

Stefan

1:12 am on Dec 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you don't use FP you don't have half of these problems.

And you also don't get code that is totally bloated. This is much appreciated by people like me who are on dial-up.

Nova Reticulis

12:24 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



And people like me who are code fascists that cant stand incompetence known as FrontPage

ergophobe

5:02 pm on Dec 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




code fascists

:-) Know thyself!

So, prefacing this by saying that I agree that Frontpage is probably responsible for more unusable, inaccessible websites than any other technology, I know that over in the WYSIWYG forum some folks love it and say that you can tweak the settings so that it will write valid code. I'd head over there and ask your questions (actually, *I* would delete Frontpage from my hardrive, but *you* may wish to go over there and ask someone who actually knows and likes Frontpage better than I do).

Tom

g1smd

10:30 pm on Dec 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you cannot physically add the DOCTYPE line to your HTML code you can still validate your pages by visiting: [validator.w3.org...] and using the selector box to tell the validator which HTML version you want your page checked against.

I would think that HTML 4.01 Transitional (or Frameset for frameset pages) is probably best.

You'll also need the Content-Type (Character Set) information either embedded on the HTML page, or selected on the validator site.

.

If you see the DOCTYPE line as simple text at the top of the page on your site, then you have probably added it using the content screen, rather than on the source code screen. If all else fails, open the web page in a text editor and add the DOCTYPE line using that.

robert adams

11:08 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



If all else fails, open the web page in a text editor and add the DOCTYPE line using that.

OMG open a FP document in a text editor!Then they might actually see the evil that FP creates, who knows what that might start. :):):)

robert

Farix

11:40 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



I edit the template FP uses to something along the lines:

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

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>

<body>

</body>
</html>