FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » doctype not found?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: doctype not found? [message #173614 is a reply to message #173613] Wed, 20 April 2011 15:29 Go to previous messageGo to previous message
geoff is currently offline  geoff
Messages: 8
Registered: April 2011
Karma:
Junior Member
On Wed, 20 Apr 2011 10:49:55 -0400, "Beauregard T. Shagnasty"
<a(dot)nony(dot)mous(at)example(dot)invalid> wrote:

> Beauregard T. Shagnasty repliedto hisself:
>
>> 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">
>
> And I think I'll add this, which is still OT for a PHP group, but I see
> it as important. In your CSS, you've assigned a font-size of 80% ...
> that is below my aged eyes' ability. And you're using Verdana. Use 100%
> for your base font, and drop the overly-large Verdana font.
>
> body {
> background-image: url(pattern.png) ;
> font-size:80%; /* 62.5*/
> font-family:verdana,helvetica,arial,sans-serif;
> line-height:1;
> /*behavior: url(csshover2.htc);*/
> }
>
> line-height: 1 is less than normal. You should drop that.
> Was 62.5%?? Were you reading about the horrible Clagnut method?
> See: http://tekrider.net/html/fontsize.php

I will take a look at the font sizes but just for the minute I have
gone back to

http://www.micro-active.com/index.php

which is seen by W3C HTML Checker as HTML 4.01 Strict and sees no
errors.

But if I add a line such as

error_reporting(E_ALL);

I then get loads of errors in the Checker.

Plus in the normal browser window I see "undefined constant firsttime"
line 5

see

http://www.micro-active.com/index2.php

?!

Geoff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parameter passing question
Next Topic: My contact form is not emailed to me
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 05:47:17 GMT 2024

Total time taken to generate the page: 0.04365 seconds