Welcome Guest!
Please login
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.
![]() ![]() |
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. |
|
|
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. -------------------- |
|
|
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 |
|
|
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 |
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. -------------------- |
|
|
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. -------------------- |
|
|
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. 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 |
|
|
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. |
|
|
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! |
|
|
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
-------------------- |
|
|
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.
-------------------- Blog : The Net is Dying! | Forum: We Are Battlefield Heroes Forum
Job: Bennett Seo | Twitter: Bennett Seo Vanilla Source - Vanilla Help, and mods |
|
|
May 11 2008, 04:47 AM
Post
#11
|
|
|
Squeeze Machine ![]() ![]() ![]() ![]() ![]() Group: Mentor Posts: 507 Joined: 15-February 08 From: UK Member No.: 143 |
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. 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 |
|
|
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!
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
12 | 902 | 178 | 23rd February 2008 - 11:27 AM Last post by: karinne |
|||
![]() |
2 | jamesicus | 148 | 10th March 2008 - 03:59 PM Last post by: jamesicus |
|||
![]() |
10 | 902 | 238 | 26th March 2008 - 08:49 PM Last post by: 902 |
|||
![]() |
3 | Mark | 42 | Today, 08:51 AM Last post by: karinne |
|||







Apr 14 2008, 07:06 PM












