Ar 10/11/10 17:49, ysgrifennodd John :
I am relatively inexperienced with CSS and HTML..I've made all my own web pages, but learn what I need at the time followed by years of doing nothing with it until the next re-design.

A tutorial I watched recommended going with XHTML, but some say it's not the way to go, and I don't know for sure what the right direction would be for me.

Recommendations?

thanks!

John


Hi John,

Was there any particular reason why XHTML would not be the way to go? Whatever DOCTYPE you decide to use, you have to follow its rules and - speaking personally - I've never found following the rules of XHTML to be any more onerous than those of HTML. Unless I really have no choice (e.g. a customer wants to force the opening of a new window from a link) all my stuff is XHTML 1.0 Strict and CSS 2.1.

There are a couple of things you have to bear in mind if you want XHTML to work in older IEs, like omitting the XML declaration and not using XHTML 1.1 (both of which put IE into quirks mode, IIRC), but working with older IEs is going to be a problem whatever DOCTYPE you choose. XHTML might make it a bit easier to ensure the separation of structure and format, I suppose; but good practise should make you do that anyway.

But at the end of the day - and in my opinion only - it's just a matter of choice. It's producing *valid* HTML that's important to me, not the DOCTYPE.

HTH

Cheers


Peter

--
http://www.peredur.net

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to