Re: doctype not found? [message #173611 is a reply to message #173607] |
Wed, 20 April 2011 13:17 |
Beauregard T. Shagnas
Messages: 154 Registered: September 2010
Karma:
|
Senior Member |
|
|
geoff(at)invalid(dot)invalid wrote:
> I have added the doctype etc info to the php at the top of the page
> and now the page is centred in IE9 and the other browsers and W3C
> HTML checker finds no errors.
I just ran your page by the validator again, and it still says it can't
find the doctype.
Errors found while checking this document as HTML 4.01 Transitional!
Result: 5 Errors, 5 warning(s)
Maybe it is because of the blank line before it. Maybe it is because of
the single-quote marks in your doctype. Remove the blank line in the
resultant HTML and copy/use this (with double-quotes):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
--
-bts
-Four wheels carry the body; two wheels move the soul
|
|
|