Ok I have an assigment, and I'm making it XHTML Strict 1.0, but the validator validates it as even transitional valid. So I say.. what is the actual difference between the two?
XHTML - Transitional or Strict?
Started by TcM, Nov 28 2007 08:11 AM
5 replies to this topic
#1
Posted 28 November 2007 - 08:11 AM
|
|
|
#2
Posted 28 November 2007 - 09:11 AM
Strict is more strict than transitional, when it comes to different tags, etc. Transitional supports some of the old stuff from HTML 3.2 - 4.1, while they're removed when using strict.
In generally, you can say that everything which works in strict will work in transitional, but everything which works in transitional will not work in strict.
An example could be the U-tag. It's not supported in strict, but supported in transitional.
In generally, you can say that everything which works in strict will work in transitional, but everything which works in transitional will not work in strict.
An example could be the U-tag. It's not supported in strict, but supported in transitional.
<!-- This work with a transitional doctype, --> <!-- but not with a strict doctype. --> <u>Hello, World!</u>
#3
Posted 28 November 2007 - 02:27 PM
#4
Posted 28 November 2007 - 02:51 PM
Yeah, I used that to validate my project.
Thanks for the validation, so transitional is more 'tolerant'
Thanks for the validation, so transitional is more 'tolerant'
#5
Posted 20 January 2008 - 10:16 AM
I think of it more as a way to ease oldtimers with HTML into XHTML. W3schools has a list of tags and that shows which tags are deprecated and not.
[url]http://www.w3schools...ags/default.asp[url]
To the right in the list there is a row called "DTD" this shows which Doctype Definition the tag works in:
S - Strict
T - Transitional
F - Frameset
As you might notice those that only work in "T" and "F" are "Deprecated", these are to be avoided, since they will be removed totally in the future. Most of the deprecated ones are tags that are used to format text or similar things that should be done with CSS.
Also, this is a nobrainer really, but did you declare the correct Doctype Definition?
[url]http://www.w3schools...ags/default.asp[url]
To the right in the list there is a row called "DTD" this shows which Doctype Definition the tag works in:
S - Strict
T - Transitional
F - Frameset
As you might notice those that only work in "T" and "F" are "Deprecated", these are to be avoided, since they will be removed totally in the future. Most of the deprecated ones are tags that are used to format text or similar things that should be done with CSS.
Also, this is a nobrainer really, but did you declare the correct Doctype Definition?
Spräng kommer! ETTtusen, TVÅtusen, TREtusen!
#6
Posted 21 January 2008 - 08:48 AM
Yeah of course I did declare it as strict, but when I changed the doctype from Strict 1.0 to Transitional 1.0 it still showed no errors.


Sign In
Create Account


Back to top









