473,396 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Differences between HTML 4.01 Strict and HTML 4.01 Transitional?

I am designing a content management system and I want to make sure all pages
entered into it's database by users are using valid HTML. I have designed
the system to use HTML 4.01 Transitional throughout, however the php powered
html checker I have only caters for HTML 4.01 Strict.

If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.

Is there anyone who knows where a list of these differences can be found?

I have found this one for XHTML Strict and Transitional but nothing as yet
for HTML.

http://liorean.web-graphics.com/xhtm...se-strict.html

Thanks in advance for any help on this!

Kieran
Jul 24 '05 #1
13 9599
Op Tue, 31 May 2005 18:13:13 +0100 schreef "Kieran"
<ki***************@gmail.com>:
I am designing a content management system and I want to make sure all pages
entered into it's database by users are using valid HTML. I have designed
the system to use HTML 4.01 Transitional throughout, however the php powered
html checker I have only caters for HTML 4.01 Strict.

If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.

Is there anyone who knows where a list of these differences can be found?

I have found this one for XHTML Strict and Transitional but nothing as yet
for HTML.

http://liorean.web-graphics.com/xhtm...se-strict.html

Thanks in advance for any help on this!

Kieran


Not exactly sure if this of any help.

In the HTML 4.01 specification on the W3C website, there is an index
of HTML elements and HTML Attributes. Any element or attribute that is
"deprecated" is allowed in 4.01 transitional, but not in strict (if I
understand it correctly).
This might get you going ...

B.t.w. anything that is strict 4.01 also conforms to 4.01
transitional, so I'm not quite sure why you would want to make youre
system produce transitional if it produces strict.

Bart
--
Bart Broersma
br*********************@tiscali.nl
(ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)
Jul 24 '05 #2
Kieran wrote:
If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.
Strict is Transitional with most of the stuff that you shouldn't use
removed.
Is there anyone who knows where a list of these differences can be found?
http://www.w3.org/TR/html4/index/elements.html
http://www.w3.org/TR/html4/index/attributes.html

Elements and attributes that appear in Transtional but not Strict are marked
with an "L" in the DTD column. There are some other differences, such as
<form> and <body> elements being allowed to hold only block level elements
in Strict, but are allowed Inline elements in Transitional.
I have found this one for XHTML Strict and Transitional but nothing as yet
for HTML.

http://liorean.web-graphics.com/xhtm...se-strict.html


Assuming you mean XHTML 1.0 Strict and Transitional, then the differences
between those are exactly the same as the differences between 4.01 Strict
and Transitional. XHTML 1.0 is HTML 4.01 expressed in XML.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #3
Bart wrote:
In the HTML 4.01 specification on the W3C website, there is an index
of HTML elements and HTML Attributes. Any element or attribute that is
"deprecated" is allowed in 4.01 transitional, but not in strict (if I
understand it correctly).


That's a bit approximate. Iframe, for example, isn't deprecated, but doesn't
appear in Strict.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #4
Kieran wrote:
I am designing a content management system and I want to make sure all pages
entered into it's database by users are using valid HTML. I have designed
the system to use HTML 4.01 Transitional throughout, however the php powered
html checker I have only caters for HTML 4.01 Strict.

If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.


"Transitional" is a weasel-word for Legacy. It was designed to cope
with a legacy of old, broken browsers and many authors desire to do
presentation that was backwards-compatible with them.

Those browsers that were old and deprecated seven years ago are no
longer relevant. So "transitional" HTML is likewise no longer
relevant. Just forget about it.

--
Nick Kew
Jul 24 '05 #5
"Nick Kew" <ni**@asgard.webthing.com> wrote in message
news:5a************@asgard.webthing.com...
Kieran wrote:
I am designing a content management system and I want to make sure all
pages
entered into it's database by users are using valid HTML. I have designed
the system to use HTML 4.01 Transitional throughout, however the php
powered
html checker I have only caters for HTML 4.01 Strict.

If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up
to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.


"Transitional" is a weasel-word for Legacy. It was designed to cope
with a legacy of old, broken browsers and many authors desire to do
presentation that was backwards-compatible with them.

Those browsers that were old and deprecated seven years ago are no
longer relevant. So "transitional" HTML is likewise no longer
relevant. Just forget about it.

--
Nick Kew


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, and
while I still wish my site to conform to a standard that every browser can
tackle, I also wish it to be more forgiving with users HTML, which it
appears more possible to do with Transitional.

Also Strict requires all style type elements to use a style sheet. 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.

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 :)

Kieran
Jul 24 '05 #6
"David Dorward" <do*****@yahoo.com> wrote in message
news:d7*******************@news.demon.co.uk...
Kieran wrote:
If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up
to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.


Strict is Transitional with most of the stuff that you shouldn't use
removed.
Is there anyone who knows where a list of these differences can be found?


http://www.w3.org/TR/html4/index/elements.html
http://www.w3.org/TR/html4/index/attributes.html

Elements and attributes that appear in Transtional but not Strict are
marked
with an "L" in the DTD column. There are some other differences, such as
<form> and <body> elements being allowed to hold only block level elements
in Strict, but are allowed Inline elements in Transitional.
I have found this one for XHTML Strict and Transitional but nothing as
yet
for HTML.

http://liorean.web-graphics.com/xhtm...se-strict.html


Assuming you mean XHTML 1.0 Strict and Transitional, then the differences
between those are exactly the same as the differences between 4.01 Strict
and Transitional. XHTML 1.0 is HTML 4.01 expressed in XML.

Ah, that's very helpful - thanks a lot for this info. I had been assuming
there were documents knocking around that would indicate this kind of thing
I just didn't know quite where to find/how to interpret them.

Thanks for the explanation!

Kieran
Jul 24 '05 #7

"Bart" <br*********************@tiscali.nl> wrote in message
news:5k********************************@4ax.com...
Op Tue, 31 May 2005 18:13:13 +0100 schreef "Kieran"
<ki***************@gmail.com>:
I am designing a content management system and I want to make sure all
pages
entered into it's database by users are using valid HTML. I have designed
the system to use HTML 4.01 Transitional throughout, however the php
powered
html checker I have only caters for HTML 4.01 Strict.

If possible I need to know the complete differences between Strict and
Transitional so I can go through the php script and correctly set it up to
properly check pages are using 4.01 Transitional before submission to the
database is allowed by the system.

Is there anyone who knows where a list of these differences can be found?

I have found this one for XHTML Strict and Transitional but nothing as yet
for HTML.

http://liorean.web-graphics.com/xhtm...se-strict.html

Thanks in advance for any help on this!

Kieran

Not exactly sure if this of any help.

In the HTML 4.01 specification on the W3C website, there is an index
of HTML elements and HTML Attributes. Any element or attribute that is
"deprecated" is allowed in 4.01 transitional, but not in strict (if I
understand it correctly).
This might get you going ...


Thanks for your help here :)
B.t.w. anything that is strict 4.01 also conforms to 4.01
transitional, so I'm not quite sure why you would want to make youre
system produce transitional if it produces strict.


Essentially you are right, however this doesn't take into account the users
of the CMS system not being able to take advantage of style sheets and so
therefore not conforming to strict when they wish to make certain style
changes to their pages. Transitional is also slightly more forgiving in
places which would suit users who have just started out at using HTML - the
situation where a CMS would be most attractive and made use of most.

Kieran
Jul 24 '05 #8
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
Jul 24 '05 #9
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.
Jul 24 '05 #10
On Wed, 1 Jun 2005 09:46:00 +0100, "Kieran"
<ki***************@gmail.com> wrote:
Ah, that's very helpful - thanks a lot for this info. I had been assuming
there were documents knocking around that would indicate this kind of thing
I just didn't know quite where to find/how to interpret them.


You really ought to know this stuff instantly before you even think
about writing a CMS. The world has plenty of dodgy CMS already - if
you're going to add to them, make it a good one.

Jul 24 '05 #11

"Andy Dingley" <di*****@codesmiths.com> wrote in message
news:6b********************************@4ax.com...
On Wed, 1 Jun 2005 09:46:00 +0100, "Kieran"
<ki***************@gmail.com> wrote:
Ah, that's very helpful - thanks a lot for this info. I had been assuming
there were documents knocking around that would indicate this kind of
thing
I just didn't know quite where to find/how to interpret them.


You really ought to know this stuff instantly before you even think
about writing a CMS. The world has plenty of dodgy CMS already - if
you're going to add to them, make it a good one.


Agreed - however the system is it is very modular, and so although the core
HTML would have to be changed in order to fit a different standard, only one
file (the HTML parser) would have to be altered to make everyone's entries
conform to the site's standard.

Also this isn't just like an ordinary run of the mill CMS; certainly not in
terms of integration anyhow ;)

I am however taking on board what is being said here and am considering
carefully what HTML standard to do the whole thing in - thanks for the
input!

Kieran
Jul 24 '05 #12
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote in message
news:Pi*******************************@ppepc56.ph. gla.ac.uk...
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
Jul 24 '05 #13
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
Jul 24 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: R. Rajesh Jeba Anbiah | last post by:
I would like to know what HTML standard will be better for PHP webapplications? Right now, I use HTML 4.01 Transitional. And like to know what *you* PHP programmers prefer? and which is good? TIA....
29
by: Armand Karlsen | last post by:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML 4.01 Transitional and CSS compliant, and I'm thinking of converting it into XHTML to learn a little about it. Which XHTML variant...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
41
by: deko | last post by:
A web page can be created using either strict or transitional HTML. The DOCTYPE for strict is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> And...
3
by: Nik | last post by:
I have been trying base my site on the Ruthsarian Lab's layout at http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/tweak_01.html This design is in xhtml, whereas I would prefer to have my...
2
by: Bruno Schneider | last post by:
I've seen this page, that seems invalid to me. Doctype is incomplete and it does not have a <bodytag. However, W3C validator validates it as HTML 4.01 strict, even when I force the DOCTYPE. I think...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.