Kwissle

My real-time quiz battle game Kwissle.com

Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Photos

Photoalbum, both old and new.

Twitter

Follow me on Twitter

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 
Web development

XHTML Transitional versus Strict

http://liorean.web-graphics.com/xhtml/comparison.loose-strict.html

5th of November 2004

Suppose you're sold on the idea of XHTML instead of HTML. Then, the next thing you have to decide is whether to go for XHTML 1.0 Strict or XHTML 1.0 Transitional.

The names speak for themselves. Strict is strict/rigid, Transitional is transitional/forgiving. The benefits of Strict over Transitional are similar to those of XHTML over HTML in principle. The question is, is Transitional not good enough? Do you have to go so far as to use Strict?

Jeffery Zeldman writes in his book, Designing With Web Standards

"In XHTML 1.0 and 1.1 Strict, presentational hacks are actually forbidden: Use them and your page will no longer pass muster when you run it through the W3C's Markup Validation Service, familiarly known as "the Validator"."

He also gets practical with it in this paragraph:

"Many standards geeks prefer XHTML 1.1 Strict, and there's nothing wrong with it, but it is less compatible with the past and it is properly served with a MIME type that causes some popular current browsers to misbehave. Additionally, converting old-school web pages to XHTML 1.1 Strict takes more work and requires more rethinking than converting to XHTML 1.0 Transitional. For many readers of this book, XHTML 1.0 Transitional is likely to be the best choice for the next few years."

Ok. I think I get it now. Use Transitional when converting an old HTML site over to XHTML. Use Strict when you're starting something new.

Another such variable to consider is the CMS (Content Management System). My system, Zope generates image tags that are invalid for Strict because they have, by default, a border="0" attribute by default.



Comment

 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.