Click here to get back home

Differences between HTML 4.01 Strict and HTML 4.01 Transitional?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Differences between HTML 4.01 Strict and HTML 4.01 Transitional? Kieran 05-31-2005
Get Chitika Premium
Posted by David Dorward on June 1, 2005, 10:49 am
Please log in for more thread options


Kieran wrote:

> Thanks - I sort of had the idea this was the case, however, many of the
> users of the CMS may also have "Legacy" (definitely fewer) html skills,

Education, Education, Education.

> and while I still wish my site to conform to a standard that every browser
> can tackle

As mentioned previously, Strict is a subset of Transitional. Since Strict
doesn't have anything in it that Transitional doesn't have, it could hardly
be less well supported!

> , I also wish it to be more forgiving with users HTML, which it
> appears more possible to do with Transitional.

I prefer to send better HTML to the reader.

> Also Strict requires all style type elements to use a style sheet.

If by "style sheet" in this case you mean an external CSS file, then you are
wrong. <script> elements and (ick) inline style attributes are as valid in
Strict as they are in Transitional.

That said, the average author shouldn't need to mess about with CSS. The
designer produces a style sheet, then the author writes markup - using
classes and ids defined in the style sheet as needed. This way you achieve
a consistant look across the website.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Posted by Alan J. Flavell on June 1, 2005, 2:32 pm
Please log in for more thread options


On Wed, 1 Jun 2005, Kieran wrote:

> Thanks - I sort of had the idea this was the case, however, many of the
> users of the CMS may also have "Legacy" (definitely fewer) html

translation: useless historical ballast

> skills,

for some value of the term 'skill', I suppose...

> and while I still wish my site to conform to a standard that every
> browser can tackle,

Current browsers can do a perfectly fine job with HTML/2.0, you know,
and even better if a stylesheet is applied. There is *no need* for
that Netscape-ish presentational crud, and anyone who is still
producing it seriously (as opposed to it lurking in their legacy
documents, to which I'd have to plead guilty myself) really needs to
re-educate themselves about the WWW.

> I also wish it to be more forgiving with users HTML, which it
> appears more possible to do with Transitional.

I'd guess you're confusing two different things. If you're saying
that your authors are incapable of producing syntactically valid HTML,
then maybe you should consider introducing a publishing process which
rectifies that problem. It's not fair to send garbage to one's
readers and hoping that they have a browser which fixes-up bugs in the
same way as the one(s) that the author "tested" with.

> Also Strict requires all style type elements to use a style sheet.

Not true, although in most cases it's advisable to use a style sheet
rather than stuffing CSS back into the HTML file. That's simply good
web engineering practice.

> While I do have a style sheet, in the CMS permissions settings it
> will be impossible for users to modify this to allow them to
> properly conform to HTML Strict if they wish to change certain
> things about the way their pages look.

Sounds like premature optimisation to me. You haven't yet finished
the discussion - but already you've set hard and fast rules about how
the system is going to work?

> Thanks for the general heads up on the origins of transitional
> however - I am trying to use strict in all my non-CMS based sites :)

To me I have to say this makes no kind of sense - on the WWW the key
factor is what you're serving out to the reader -- whereas, just how
you create that, internally, is your own affair, but the result has to
be meaningful. So decide the end result (which nowadays should surely
be strict or something very close to it, with CSS for presentation)
and then make sure you use appropriate tools for creating it.

This is surely easier with a content management system than it is with
hand-knitted pages...

How you deal with fogies who insist on creating legacy HTML/3.2-like
stuff is not my problem, but I'd have to say they are only storing up
trouble for the future, for themselves and for your web site. That
unwanted crud from 5-7 years back is now past history, thank goodness,
and (newly-made) web sites are better off without it. With *very* few
exceptions.


Posted by Kieran on June 2, 2005, 9:45 am
Please log in for more thread options


> On Wed, 1 Jun 2005, Kieran wrote:
>
>> Thanks - I sort of had the idea this was the case, however, many of the
>> users of the CMS may also have "Legacy" (definitely fewer) html
>
> translation: useless historical ballast
>
>> skills,
>
> for some value of the term 'skill', I suppose...
>
>> and while I still wish my site to conform to a standard that every
>> browser can tackle,
>
> Current browsers can do a perfectly fine job with HTML/2.0, you know,
> and even better if a stylesheet is applied. There is *no need* for
> that Netscape-ish presentational crud, and anyone who is still
> producing it seriously (as opposed to it lurking in their legacy
> documents, to which I'd have to plead guilty myself) really needs to
> re-educate themselves about the WWW.
>
>> I also wish it to be more forgiving with users HTML, which it
>> appears more possible to do with Transitional.
>
> I'd guess you're confusing two different things. If you're saying
> that your authors are incapable of producing syntactically valid HTML,
> then maybe you should consider introducing a publishing process which
> rectifies that problem. It's not fair to send garbage to one's
> readers and hoping that they have a browser which fixes-up bugs in the
> same way as the one(s) that the author "tested" with.

This is a very valid point, however that is the whole idea of checking a
users html before it can be submitted. I can see Transitional is not a
popular choice, and i am considering changing to strict, however the main
thrust here is it will be impossible for the author to end up causing the
system to send mal-formed html to the reader. If on submission there are
problems, the suthor will be alerted of this, in the same way as the w3c
parser informs you of errors, and they will be able to correct them before
trying to submit their page again.

I think the main decision here is what to get the parser testing for....
Strict or Transitional, and I think based on the answers here I have made
the choice of strict (less work on the parser too as it already supports
strict).


>> Also Strict requires all style type elements to use a style sheet.
>
> Not true, although in most cases it's advisable to use a style sheet
> rather than stuffing CSS back into the HTML file. That's simply good
> web engineering practice.
>
>> While I do have a style sheet, in the CMS permissions settings it
>> will be impossible for users to modify this to allow them to
>> properly conform to HTML Strict if they wish to change certain
>> things about the way their pages look.
>
> Sounds like premature optimisation to me. You haven't yet finished
> the discussion - but already you've set hard and fast rules about how
> the system is going to work?
>
>> Thanks for the general heads up on the origins of transitional
>> however - I am trying to use strict in all my non-CMS based sites :)
>
> To me I have to say this makes no kind of sense - on the WWW the key
> factor is what you're serving out to the reader -- whereas, just how
> you create that, internally, is your own affair, but the result has to
> be meaningful. So decide the end result (which nowadays should surely
> be strict or something very close to it, with CSS for presentation)
> and then make sure you use appropriate tools for creating it.

Under ordinary circumsnatnces I would agree entirely, and I am trying to put
the cart before the horse as much as I can, however my CMS is in fact being
integrated with a system already in place which has the restrictions I speak
of (runs in Transitional etc.)

It is not beyond the realms of possibility to check for 4.01 strict for
authors submissions, and so that is what I have decided to do. This should
mean the reader encounters only valid HTML.


> This is surely easier with a content management system than it is with
> hand-knitted pages...

Very much so!

> How you deal with fogies who insist on creating legacy HTML/3.2-like
> stuff is not my problem, but I'd have to say they are only storing up
> trouble for the future, for themselves and for your web site. That
> unwanted crud from 5-7 years back is now past history, thank goodness,
> and (newly-made) web sites are better off without it. With *very* few
> exceptions.

Agreed - that's why I am making sure early on to include a parser that
checks all submissions and makes them conform to a standard, which looks set
to be 4.01 Strict. That way people will be forced to write HTML that is
acceptable to readers.

Many thanks for your help in this, all very useful input!

Kieran




Posted by Nick Kew on June 2, 2005, 10:36 am
Please log in for more thread options


Kieran wrote:

> I think the main decision here is what to get the parser testing for....
> Strict or Transitional, and I think based on the answers here I have made
> the choice of strict (less work on the parser too as it already supports
> strict).

Don't reinvent the wheel. There are plenty of parsers out there that'll
support strict, transitional, or any other variant: all you have to do
is configure them to use the appropriate DTD.

See http://www.apachetutor.org/apps/annot for one example.

--
Nick Kew


Similar ThreadsPosted
HTML 4.01 strict / transitional vs. XHTML 1.0 September 18, 2005, 3:10 pm
Does IE have the same problems with XHTML 1.0 Transitional as it does with HTML Transitional? February 20, 2006, 9:39 am
differences in rendering xhtml and html November 13, 2006, 5:26 am
Validation: XHTML Transitional vs. HTLM 4.01 Strict July 23, 2004, 6:10 pm
Strict vs Transitional XHTML doctype and images January 30, 2007, 5:32 pm
Reasons to use HTML 4.01 Transitional October 30, 2006, 11:30 am
HTML 4.01 Transitional versus Frameset September 3, 2006, 11:22 pm
EMBED-command - HTML 4.01 Transitional alternative? July 17, 2004, 7:42 pm
Help with a table using Strict HTML March 30, 2005, 7:13 pm
xhtml vs html 4 strict May 21, 2005, 5:23 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap