given this comment of AutisticCuckoo, which i believe has the most relevance so far, i think it’s time for some various conclusions i got from posts.
what impact has the use of html 4.01 transitional DTD for an otherwise html 4.01 strict markup, that has been “compromised”, a so called “modern transitional”, due to the use of some techniques, that involve markup with no links whatsoever to the actual content?
for that, i think i best start defining what a DTD declaration does and what it doesn’t.
- is the DTD declaration that important that i cannot change it easily?
no. it has very little importance as content.
it has some importance as a presence or as an absence. it has some importance for validation, but the validation it self has little importance.
- a change in the DTD declaration, from
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>
to
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
affects how browsers understand my markup.
no. the lack of it does, the change of it doesn’t do much difference.
browsers use DTD declaration as a switch between standard and quirks mode. as a general rule, the lack of DTD declaration triggers quirks mode. the presence of it triggers standard mode.
there are a few (situation, browser) couples, when an almost standard mode is triggered, which i believe don’t apply to this specific (scenario, time).
- a change of the DTD declaration, from
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>
to
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
affects how your code validates when using a validator.
no. a validator has limitations, and could possibly describe a markup as strict when, in fact, that markup has broken simple rules: like block-level elements in a paragraph element.
using a DTD declaration to validate with a validator and obtaining an icon from it, it’s not by it self proof enough that the markup is complying with a DTD or another. this is a developer’s job.
- html 4.01 transitional DTD is to be used only to describe documents that have yet to make the transition from html 3.2 to html 4.01.
arguable. we have to wait a long period of time until new specs are being developed, and even longer until they become standards in use.
in the mean time, definitions and specs need to be reinterpreted and aligned with the new techniques and developments emearging. these cannot all be predicted at the time when specs are created. if it was possible, i’m sure such practices would be amended at the time, as many others are (like the use of empty <p> elements).
- a html 4.01 DTD transitional should not be used for newly created html documents.
arguable. transitional means obtaining a separation between presentation and content, given some time.
a period of transition is needed for some presentation elements and attributes to phase out as the support for style sheets mature. if new developments emerging are pointing to similar transitional coding behaviours in a document, but different in the nature of the elements involved, that have prospects of phasing out due to the style sheets maturing, i believe those qualify the document as transitional also.
while it’s pretty obvious that <div> and <span> don’t fall in the deprecated elements category, using them as empty shells, outside the actual content borders, then this kind of use can be described as “modern transitional”.
- are certain rounded corners techniques or image replacements techniques, presentation only constructs?
yes. they employ the use of valid strict markup code, but for the wrong purpose when it comes to separation between presentation and content.
the question is: is it that wrong? no, but it isn’t right also. no matter how “correct” technically speaking, their simple use to achieve such presentational features it’s not the job to be used for: to work with the actual content alone.
- using the DTD declaration to flag a markup (using the above mentioned techniques) as being “compromised”, is this a wrong thing?
no. this is the first thing a DTD declaration does: flags a markup.
unrelated conclusions.
-
is it wrong to question the use of something that is noting more than a recommendation?
yes. but only if you live in a dictatorship.
-
is my english broken and makes it harder for readers to understand my points?
yes. but i promise to make it better.
-
do i feel threatened by other’s knowledge and have a viral response for any standing in my way?
no, not at all. i respect it and i try to assimilate the good stuff.
-
is this thread useless?
yes. if you have rules you don’t want to go over again.