Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Strict Vs. Transitional Xhtml

This is a discussion on Strict Vs. Transitional Xhtml, within the Beginners' Questions section. This forum and the thread "Strict Vs. Transitional Xhtml" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> Strict Vs. Transitional Xhtml, What's the difference and why would you use one over the other?
Itsumishi
post Apr 14 2008, 07:06 PM
Post #1


Squeezing
***

Group: Members
Posts: 77
Joined: 5-March 08
From: Melbourne, Australia
Member No.: 195



I've done a couple of searches on Google and the such and I've come accross a lot of answers. However I thought it would be good to get opinions of users here and it might be a question other users are asking.

So what are the differences between Strict Vs. Transitional XHTML and why would you use one over the other?

It seems like all my pages turn out to be Transitional but I don't know how I go about changing that.
Go to the top of the page
 
+Quote Post
Ryan
post Apr 14 2008, 09:48 PM
Post #2


Rapid Squeezer
****

Group: Members
Posts: 119
Joined: 14-February 08
From: Hounslow, London
Member No.: 133



It's really comes down to preference. I prefer strict because the rules are more rigid, and it can be easier to spot a problem with a layout when using strict.

The differences between strict and transitional aren't that great. If you wanted to update your site, and it has valid transitional XHTML, chances are it won't take that long at all. To make them strict, add the proper doctype, and then use an HTML validator to see if you need to change anything.


--------------------
Go to the top of the page
 
+Quote Post
JustinStudios
post Apr 14 2008, 09:52 PM
Post #3


Rapid Squeezer
****

Group: Members
Posts: 156
Joined: 15-February 08
From: US of A
Member No.: 150



Correct me if I am wrong... but I believe that Transitional is reserved for old sites using HTML that are being "transitioned" into Strict coding.


--------------------
Currently Available for work: - XTHML, CSS, Flash, Actionscript, PHP, ASP, Ajax -
interested in movies? Read some of my reviews on my blog
Go to the top of the page
 
+Quote Post
Mark
post Apr 14 2008, 10:14 PM
Post #4


Don deluzione
*****

Group: Team Leaders
Posts: 860
Joined: 13-February 08
From: 10km from nowhere and just south of nothing
Member No.: 7



QUOTE (JustinStudios @ Apr 14 2008, 08:52 PM) *
Correct me if I am wrong... but I believe that Transitional is reserved for old sites using HTML that are being "transitioned" into Strict coding.

yeah.. Transitional has sort of a legacy support. Deprecated tags or attributes might still be valid in transitional, while they will not validate when you use strict.


--------------------
Go to the top of the page
 
+Quote Post
Jason
post Apr 15 2008, 02:03 AM
Post #5


Master of the Universe
******

Group: Mentor
Posts: 1,094
Joined: 15-February 08
From: London, England
Member No.: 141



Strict is used to 'properly' code your website. Ideally you want to separate structure from presentation. This is what the strict doctype is for. You will define your page structure in one file and define your presentation in a separate stylesheet.

Transitional allows you to use formatting tags as well as structural tags. You can do line breaks, bold and other things. Transitional also contains many depreciated tags which will be dropped in the next version of XHTML.

Strict will give you super neat coding and all of your presentation work will be done with CSS. Transitional allows for some flexibility so you can change your appearance via html.

If you are starting out I would recommend starting with the Strict Doctype as this is the future. Transitional is there to really help designers bridge the gap between what they knew previously and writing properly semantic mark up.


--------------------
Go to the top of the page
 
+Quote Post
MikeHopley
post Apr 15 2008, 04:56 AM
Post #6


Squeeze Machine
*****

Group: Mentor
Posts: 507
Joined: 15-February 08
From: UK
Member No.: 143



Go Strict.

Transitional was only ever intended as a stepping stone towards Strict. Nowadays you should really be using Strict.

QUOTE
Transitional allows you to use formatting tags as well as structural tags. You can do line breaks, bold and other things. Transitional also contains many depreciated tags which will be dropped in the next version of XHTML.


Line breaks (<br>) and bold (<b>) are allowed in Strict too. And it's "deprecated". And deprecated code has already been dropped from Strict (X)HTML. tongue.gif

QUOTE
It seems like all my pages turn out to be Transitional but I don't know how I go about changing that.


Just change your Doctype.

See my article on doctypes for an analysis of your options.

This post has been edited by MikeHopley: Apr 15 2008, 04:59 AM
Go to the top of the page
 
+Quote Post
Justify
post Apr 15 2008, 09:58 AM
Post #7


Squeezing
***

Group: Members
Posts: 90
Joined: 14-February 08
Member No.: 76



Are you using dreamweaver?

If so hit ctrl + N for a new page then in the bottom right corner there should be the different doctypes before you start.

I also use strict coding.
Go to the top of the page
 
+Quote Post
Itsumishi
post Apr 15 2008, 09:09 PM
Post #8


Squeezing
***

Group: Members
Posts: 77
Joined: 5-March 08
From: Melbourne, Australia
Member No.: 195



Cool.
Well I'm happy. It seems that I've been learning well.
The first site I worked on had a few validation errors after I changed the doc type. However my newer site validated right away.
Thanks everyone!
Go to the top of the page
 
+Quote Post
Daygon
post Apr 16 2008, 02:08 PM
Post #9


Rapid Squeezer
****

Group: Members
Posts: 115
Joined: 13-February 08
From: Houston, Texas
Member No.: 12



strict is based more on css usage, what i mean by that is that, it almost forces you to use styles rather than your whole layout in nothing but html... i think thats what it means


--------------------
Jonathon Harrelson
Portfolio: InterAction Media Inc
Available for work
Go to the top of the page
 
+Quote Post
Simon
post May 10 2008, 01:24 AM
Post #10


Rapid Squeezer
****

Group: Members
Posts: 337
Joined: 14-February 08
From: Dreamweaver
Member No.: 68



A Seo Man once said to be that Strict is better, because spiders can crawl it easier? I am not to sure.


--------------------
Go to the top of the page
 
+Quote Post
MikeHopley
post May 11 2008, 04:47 AM
Post #11


Squeeze Machine
*****

Group: Mentor
Posts: 507
Joined: 15-February 08
From: UK
Member No.: 143



QUOTE (Simon @ May 10 2008, 07:24 AM) *
A Seo Man once said to be that Strict is better, because spiders can crawl it easier? I am not to sure.


Superstitious Evidence-free Opinion. tongue.gif

Even if your code is invalid, spiders can crawl it fine -- although if the structure is damaged, they could possibly miss links and blocks of text (potentially everything, if it's a major <div> that's broken).

Spiders will also have a time-out for excessively large pages. A spider would probably not index a 50Mb webpage, for example (not completely, anyway). I've heard speculation of 100kb limits, but again I think that's pure guesswork. I suspect that the limit is high enough such that you would be unlikely to fall foul of it, even if you coded in bloated Transitional.

Strict is better because it forces you to dump some poor coding methods (no more <font>, for a start). That's all.

This post has been edited by MikeHopley: May 11 2008, 05:06 AM
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   12 902 178 23rd February 2008 - 11:27 AM
Last post by: karinne
No New Posts   2 jamesicus 148 10th March 2008 - 03:59 PM
Last post by: jamesicus
No New Posts   10 902 238 26th March 2008 - 08:49 PM
Last post by: 902
No New Posts   3 Mark 42 Today, 08:51 AM
Last post by: karinne