Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1239
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: doctype not found? |
| Date | 2011-04-20 12:51 -0400 |
| Organization | Shagnasty Software |
| Message-ID | <ion2uk$l9p$1@dont-email.me> (permalink) |
| References | (1 earlier) <iomeck$s9j$1@dont-email.me> <nnjtq6huii3b481dmum49ucaam42k4gcnv@4ax.com> <iommch$q72$1@dont-email.me> <iomrqj$sd3$1@dont-email.me> <vgutq69842sbpo7mtsdtauoah8eei2qv52@4ax.com> |
geoff@invalid.invalid wrote:
> Beauregard T. Shagnasty wrote:
>> Beauregard T. Shagnasty repliedto hisself:
>>> 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.
At the moment...
> But if I add a line such as
> error_reporting(E_ALL);
> I then get loads of errors in the Checker.
Well, yeah. "errors" are not valid HTML!
> Plus in the normal browser window I see "undefined constant firsttime"
> line 5
Follow Alvaro's advice about " constants " and such. Your page inserts
HTML *above* (preceding) the doctype about your errors, thus blowing the
validity of it. Look at the source!
> see
> http://www.micro-active.com/index2.php
Errors found while checking this document as HTML 4.01 Transitional!
Result: 22 Errors, 8 warning(s)
In your CSS, please don't change the font-size and boldness of links
when hovered. Doing so makes the text jump about. A color change should
be sufficient.
--
-bts
-Four wheels carry the body; two wheels move the soul
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll 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