Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1232

Re: doctype not found?

From "Beauregard T. Shagnasty" <a.nony.mous@example.invalid>
Newsgroups comp.lang.php
Subject Re: doctype not found?
Date 2011-04-20 09:17 -0400
Organization Shagnasty Software
Message-ID <iommch$q72$1@dont-email.me> (permalink)
References <ht1tq6dd3jdbtc8v2quqgflr11i62vberc@4ax.com> <iomeck$s9j$1@dont-email.me> <nnjtq6huii3b481dmum49ucaam42k4gcnv@4ax.com>

Show all headers | View raw


geoff@invalid.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

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

doctype not found? geoff@invalid.invalid - 2011-04-20 08:17 +0100
  Re: doctype not found? Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-20 05:24 -0400
  Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 06:40 -0400
  Re: doctype not found? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-04-20 13:00 +0200
    Re: doctype not found? geoff@invalid.invalid - 2011-04-20 13:20 +0100
      Re: doctype not found? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-04-20 14:28 +0200
        Re: doctype not found? geoff@invalid.invalid - 2011-04-20 15:12 +0100
          Re: doctype not found? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-04-20 18:05 +0200
            Re: doctype not found? geoff@invalid.invalid - 2011-04-20 23:10 +0100
              Re: doctype not found? Jerry Stuckle <jstucklex@attglobal.net> - 2011-04-20 23:48 -0400
                Re: doctype not found? geoff@invalid.invalid - 2011-04-21 06:33 +0100
      Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 09:17 -0400
        Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 10:49 -0400
          Re: doctype not found? geoff@invalid.invalid - 2011-04-20 16:29 +0100
            Re: doctype not found? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2011-04-20 12:51 -0400

csiph-web