 |
11-05-2007, 08:06 AM
|
#1 (permalink)
|
|
Super Moderator
Join Date: 10-29-07
Location: Ontario, Canada
Posts: 2,773
|
XHTML Strict or Transitional?
Greetings...
Once again, I find myself wondering about the need to have XHTML strict validation on my markup.
I develop templates for Joomla/Mambo and as close as I follow the Strict guidelines in my templates, the Joomla core spits out it's content in depreciated markup causing my markup to fail validation. (I believe the upcoming Joomla 1.5 has taken steps toward fixing this issue)
Granted, I could go through the core files and fix it, but I don't believe this to be a good idea as future upgrades would just overwrite my efforts.
Is this something I should be concerned about? None of my past clients gave a hoot about this, but as a web developer, I would LOVE to see "Passed Strict Validation" on my work.
If I only pass Transitional XHTML, does that make me look like an inferior web developer?
Thoughts?...
__________________
Larry Monte
[Torn Elements] - Regaining the Passion for Design
[Gorgeous On Life] - The world from a Cat's point of view.
" Writing is the most fun you can have by yourself!" -Terry Pratchett
|
|
|
11-05-2007, 08:57 AM
|
#2 (permalink)
|
|
Contributing Member
Join Date: 02-20-04
Location: Friendswood, TX
Posts: 476
|
If the core produces transitional code, you should aim for transitional code IMO. When the core produces strict, you should produce strict.
Unless you are writing the core/backend, I don't think it is a reflection upon you.
|
|
|
11-05-2007, 01:14 PM
|
#3 (permalink)
|
|
Contributing Member
Join Date: 05-01-06
Posts: 198
Latest Blog: None
|
I tend to go for the strict markup, but thats just because I like to have it strict, for me if it works in all of the major browsers and has good functionality then you don't need to be valid by strict or transitional, but more often than not valid-code will help you achieve this.
|
|
|
11-05-2007, 09:05 PM
|
#4 (permalink)
|
|
Super Moderator
Join Date: 10-29-07
Location: Ontario, Canada
Posts: 2,773
|
Thanks for the responses.
Even though core code breaks my efforts, I shall continue to keep things strict in what I do.
Doesn't hurt to stay fresh... 
__________________
Larry Monte
[Torn Elements] - Regaining the Passion for Design
[Gorgeous On Life] - The world from a Cat's point of view.
" Writing is the most fun you can have by yourself!" -Terry Pratchett
|
|
|
11-06-2007, 05:40 AM
|
#5 (permalink)
|
|
Contributing Member
Join Date: 02-20-04
Location: Friendswood, TX
Posts: 476
|
Just to clarify my earlier post - some browsers (or other html renderers - page readers, etc.) use the doctype to interpret the html code. You should aim to make the code complaint with whatever doctype you choose to ensure the best compatibility of your pages with all manner of web enabled devices (including possibly search engines spidering your pages).
|
|
|
11-06-2007, 08:15 AM
|
#6 (permalink)
|
|
Super Moderator
Join Date: 10-29-07
Location: Ontario, Canada
Posts: 2,773
|
Yes, because Joomla is transitional, that's what I set my Doctype to. NP.
Thanks.
__________________
Larry Monte
[Torn Elements] - Regaining the Passion for Design
[Gorgeous On Life] - The world from a Cat's point of view.
" Writing is the most fun you can have by yourself!" -Terry Pratchett
|
|
|
11-06-2007, 06:06 PM
|
#7 (permalink)
|
|
Contributing Member
Join Date: 05-01-06
Posts: 198
Latest Blog: None
|
Quote:
Originally Posted by Bernard
Just to clarify my earlier post - some browsers (or other html renderers - page readers, etc.) use the doctype to interpret the html code. You should aim to make the code complaint with whatever doctype you choose to ensure the best compatibility of your pages with all manner of web enabled devices (including possibly search engines spidering your pages).
|
A basic rule which is generally overlooked by newcomers, well said!
|
|
|
12-07-2007, 01:50 PM
|
#8 (permalink)
|
|
Junior Member
Join Date: 03-29-07
Posts: 6
Latest Blog: None
|
Just something I have run into before....
Hi,
Sometimes when you have "uncommon html elements" to your pages, strict or transitional wont validate with certain uncommon elements... ASP, VB, Actionscript, Perl Scripts, etc.
If this is the case, I take out said elements, validate and then add those elements back into the web page. I have heard this from many industry professionals, It happens to others all the time.
I dont think that its a bad reflection on you!
Good luck!
|
|
|
12-17-2007, 04:05 PM
|
#9 (permalink)
|
|
v7n Mentor
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,361
|
I taught myself strict from the beginning, I have no idea why. When I change it into trans it always messes up my validation.
|
|
|
07-22-2008, 01:05 PM
|
#10 (permalink)
|
|
Contributing Member
Join Date: 06-28-08
Location: Dallas, TX
Posts: 153
Latest Blog: None
|
I accept transitional validation on my submitted projects. I wouldn't know how to act if I got one that passed "Strict". :-)
|
|
|
08-02-2008, 02:50 PM
|
#11 (permalink)
|
|
Contributing Member
Join Date: 07-10-08
Location: UK
Posts: 64
Latest Blog: None
|
i personally think both are good as long as your codes are clean doesn't really matter which one to use, transitional is more flexible, it allows some tag and attributes which the strict doesn't.
|
|
|
08-04-2008, 01:17 PM
|
#12 (permalink)
|
|
v7n Mentor
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
|
A little late on the response: but definitely strict XHTML. Transitional is hitting the bottom and will go away soon, so you might as well stay on top of it and do XHTML.
__________________
█ Izzmo
█ Coding Guru Extraordinaire
█ ZeroWeb Hosting & Design - Customizable hosting for every type of user!
|
|
|
08-04-2008, 05:36 PM
|
#13 (permalink)
|
|
Member
Join Date: 08-03-08
Posts: 97
Latest Blog: None
|
If you are producing a website from scratch, do what you would be happy with. However, if you are relying on a third-party CMS, validate against what they produce.
|
|
|
08-06-2008, 08:48 PM
|
#14 (permalink)
|
|
Contributing Member
Join Date: 03-24-08
Posts: 151
|
this is a hard part for me. my coding are always comes up with lot of error.
i always used w3c html validator
|
|
|
11-28-2008, 06:01 AM
|
#15 (permalink)
|
|
Junior Member
Join Date: 11-26-08
Posts: 18
Latest Blog: None
|
It isn't hard to change transitional into strict. So even if the core produces transitional, you could use strict by modifying some parts.
|
|
|
12-04-2008, 06:04 AM
|
#16 (permalink)
|
|
v7n Mentor
Join Date: 08-22-07
Location: Manila
Posts: 2,223
|
Quote:
Originally Posted by StarLab
Is this something I should be concerned about? None of my past clients gave a hoot about this, but as a web developer, I would LOVE to see "Passed Strict Validation" on my work.
If I only pass Transitional XHTML, does that make me look like an inferior web developer?
Thoughts?...
|
No, I don't think it should be something to be concerned about. Or would that make you an inferior web developer if you only pass Transitional XHTML.
Well, for me as long as you did your coding right and close all tags it's fine. The w3c consortium tells it all. Just remember to test both in Firefox and IE and the codes are simpler and neater.
Just my thoughts anyway. 
|
|
|
12-06-2008, 10:53 PM
|
#17 (permalink)
|
|
Contributing Member
Join Date: 12-06-08
Posts: 105
|
Also remember that passing validation on a website is great and all for us coders but to the average Internet user all they are concerned with is it displays correctly in their browse. So I don't think that it speaks any less of you if it validates Transitional.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:37 PM.
© Copyright 2008 V7 Inc Powered by vBulletin Copyright © 2000-2009 Jelsoft Enterprises Limited.
|
|