Switching from Strict to Transitional
Question posted by: metaphysics
(Member)
on
March 27th, 2008 07:56 AM
I have been coding web pages for a few months now. Recently, I decided to drop tables and pick up using table-less CSS markup, and it has been going pretty well. I began using Strict DOCTYPEs, because I read they were better for CSS. I was about 98% done converting a phpNuke theme into table-less CSS when I realized that the page's DOCTYPE was Transitional. At first I didn't think it would be a problem, just a few changes to close the short tags. It worked fine in Firefox, however when I went to check it in IE, the page became all disoriented.
If I wanted to change my Strict Markup into Transitional Markup, what changes should I make, and what should I pay attention to? The code is 100% valid. I will supply a link to the preview if necessary.
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
|
|
March 27th, 2008 01:00 PM
# 2
|
Re: Switching from Strict to Transitional
Trasitional is simply for those who are going from deprecated mark up to standard mark up. Change the DOC type to a script one, and run it through the validator.
If that doesn't help much then post your link.
Thanks, Death
|
|
March 27th, 2008 01:56 PM
# 3
|
Re: Switching from Strict to Transitional
As Death said, neither doctype will change how your markup is rendered. Some people get hold of the wrong one, though. Also, IE can't be trusted to follow all the rules so validated markup doesn't mean it will do what you want there.
New pages should always use the strict doctype. You have no need to use transitional.
|
|
March 28th, 2008 03:41 AM
# 4
|
Re: Switching from Strict to Transitional
Quote:
Originally Posted by Death Slaught
Trasitional is simply for those who are going from deprecated mark up to standard mark up. Change the DOC type to a script one, and run it through the validator.
If that doesn't help much then post your link.
Thanks, Death
|
Quote:
Originally Posted by drhowarddrfine
As Death said, neither doctype will change how your markup is rendered. Some people get hold of the wrong one, though. Also, IE can't be trusted to follow all the rules so validated markup doesn't mean it will do what you want there.
New pages should always use the strict doctype. You have no need to use transitional.
|
I would love to agree that neither DOCTYPE will change how your markup is rendered. I am forced to use Transitional DOCTYPE, so I have no choice in that matter. I have sent both of you PMs with a link to the test code.
|
|
March 28th, 2008 05:08 AM
# 5
|
Re: Switching from Strict to Transitional
Like I said above, some people get hold of the wrong one. This is the wrong one:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
This is the right one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
|
|
March 28th, 2008 06:21 AM
# 6
|
Re: Switching from Strict to Transitional
Quote:
Originally Posted by drhowarddrfine
Like I said above, some people get hold of the wrong one. This is the wrong one:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
This is the right one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
|
Thank you, but the page needs to be Transitional. I WISH that I could keep it with Strict DOCTYPE, that'd make it a lot easier.
|
|
March 28th, 2008 02:16 PM
# 7
|
Re: Switching from Strict to Transitional
Yes, I forgot. But you still have the wrong one.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
|
|
March 29th, 2008 06:07 AM
# 8
|
Re: Switching from Strict to Transitional
Wow, I didn't think that the answer could be so simple. Thank you for your patience.
Not the answer you were looking for? Post your question . . .
169,970 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).
|
|
|
Top HTML / CSS Forum Contributors
|