Re: [NH] DOCTYPES and content-type
- WV-Mike wrote:
> Is there a relationship between the DOCTYPE and Content-type.No the two are completely independant of one another.
As to your choices:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"This is fine but it tends to be a bit fundamentalist about separation of
content and layout. I agree with the principle, but I also hold
backwards compatibility and non-exclusion highly. Thus my own choice is
4.01 Transitional with the odd ALIGN="RIGHT" or something thrown in. If
you declare "strict" then don't forget to validate and make sure you
abide by it.
So I use
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
This is what the W3C themselves say:
> Authors should use the Strict DTD unless they need theThat's the one I use myself. Again the 127 characters of the basic
> presentation control for user agents that don't (adequately)
> support style sheets.
> <meta http-equiv="Content-type" content="text/html; charset=US-ASCII">
standardized ASCII are the most compatible choice. As an American you
have less trouble with than than we with our accents and umlauts, but be
careful: You can directly type several extended characters right from
your keyboard. Doing so will invalidate your page. I often get an ä or é
or ² slipped in that I only find with validation. To make things easy
for yourself, ands especially if there may be others editing your
content, you should declare the native local character set of your
computer. For a site I prepared not for myself alone I used:
> <META HTTP-EQUIV="Content-Type"It would be if that is your native charset. In my own W98 it's not, but
> CONTENT="text/html; charset=windows-1252">
> Or is this preferrable:
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
I don't know about XP. If you declare UTF-8 but use 1252 you're in real
Hope this helps
- Obrigado Marcelo, Thank you.
This should help a lot in beginning to understand tidy.
Too many options galore! http://tidy.sourceforge.net/docs/quickref.html
But what I really need to do is pare it down to simply converting to UTF-8
at the end of the publishing process.
To the Marvelous NoteTab developers, BIG REQUEST - Native UTF-8 support in
NTP. At least on Win 2000/XP/Vista which I believe are Unicode based
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf
Of Marcelo de Castro Bastos
Sent: Sunday, November 11, 2007 1:41 PM
Subject: Re: [NH] DOCTYPES and content-type
Interviewed by CNN on 11/11/2007 14:53, Corl DeLuna told the world:
> Hi Marcelo,would
> Would you please share the full parameters of your tidy.cfg file? This
> be a big help as I become familiar with tidy.No problemo, I restricted myself to a few lines in the previous message
in order to focus on the issue. The full thing follow below. Note that
most lines are commented out-- I did it this way so I don't have to read
a separate file every time I want to make a change. I don't remember
right now if there are more options, but I don't think so.
You can get some more documentation on this using the Tidy command-line
help (tidy -help for the command-line options, tidy -help-config for the