Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2008 14:33:02 -0700
From:      Gary Kline <kline@thought.org>
To:        "N. Raghavendra" <raghu@mri.ernet.in>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Stumped:: web HTML. Caution, may be OT.
Message-ID:  <1212269582.13063.96.camel@localhost>
In-Reply-To: <867idbc9at.fsf@riemann.mri.ernet.in>
References:  <20080529065732.GA36261@thought.org> <4a89d1190805290039k1f2dedb1he342b4a83d7453a6@mail.gmail.com> <200805291305.22567.kline@thought.org> <20080529220536.GA39115@melon.esperance-linux.co.uk> <20080530023902.GF62524@thought.org> <20080530204950.GA43574@melon.esperance-linux.co.uk> <20080531042858.GA23329@thought.org> <867idbc9at.fsf@riemann.mri.ernet.in>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2008-05-31 at 11:19 +0530, N. Raghavendra wrote:
> At 2008-05-30T21:28:58-07:00, Gary Kline wrote:
> 
> > Any guesses why things like this blowup::
> >
> >   <!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
> 
> The quoted string above is the so-called Formal Public Identifier
> (FPI) of the DTD, i.e., the "standard", that your HTML page claims to
> conform to.  However, the format of the FPI in your page is wrong.
> For instance, "dtd" should be the upper case "DTD", and the ISO 639
> language code "en" should be the upper case "EN".  In addition, the
> entire FPI is case-sensitive, so "Transitional" is different from
> "transitional".  The recommended FPI for W3C HTML 4.0 Transitional is
> "-//W3C//DTD HTML 4.0 Transitional//EN".  So, the above line should
> read
> 
>   <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" >
> 
> Better still, follow the normal practice of writing "doctype" and
> "public" in upper case, and eliminating unnecessary whitespace, and
> make it
> 
>   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> 
> At 2008-05-29T19:39:02-07:00, Gary Kline wrote:
> 
> > I still have unread messages down-queue, but may as well ask if
> > there are any HTML/XML checkers in ports that would help validate my
> > mark.
> 
> See my message earlier in this thread, where I mentioned
> textproc/opensp, and how to use it.  In fact, the W3C validator is
> based on OpenSP, see http://validator.w3.org/docs/help.html#how
> 
Thanks much.  This morning (or afternoon!) I'm replying using Evolution
that makes clicking on links easier.  There are a bunch of URL's I have
to study.

About the *only* place I use all caps is in my markup.  I didn't know
until now that the doctype//DOCTYPE tag **had** to be in caps.  I don't
see any rational for this exception, but am v glad to learn it!!

I have your earlier mail and will re-read as well as check out
textproc/opensp.   

gary

PS::  to the list: Late last night I used tidy and tidy -h, so now have 
       yet another tool in my bag:-)  ...If there atr any books or 
       websites on how to create a nice SIMPLE page, URL's please.
       (i Don't think "design" can be taught; that's like trying to 
       teach "art", isn't it?)

	--g


> Raghavendra.
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1212269582.13063.96.camel>