Forum Moderators: mack
I just want to know what a lot of the "newcomers" are doing about this and what are they using before I start hooking in.
thanks
Yes, in general, there is very little reason to use XHTML today. The most robust and best-supported standard today (and the one recommended by browser makers such as Firefox) in HTML 4.01 Strict. You can also choose HTML 4.01 Transitional, which is useful if you want your page to validate and you need to use some presentational HTML not present in the strict version.
Some prefer to use XHTML 1.0 syntax instead, but serve it as HTML (the mime-type issue you were mentioning earlier). You shouldn't try to serve XHTML as anything other than
text/html (the standard HTML mime type) for compatibility reasons. "HTML5" is only in development stage, and shouldn't be used on the public web at the time of writing. If you like the XHTML syntax better, then it's not a problem. It's a good idea to make sure you are always building pages in Standards-compliance mode in the browser - which means putting a full doctype on the very first line of each document.
A few threads you might find useful:
The most important thing is to put your users first. Don't get too stuck in the minutae of the standards debate, and just make sure that you are building a clean and robust framework for your site content. You're very welcome to post here on in the HTML and Browsers [webmasterworld.com] forum with any questions you may have when building your site. :)
Oh, and I almost forgot a link to a vital tool to help build a good site: the HTML validator:
[validator.w3.org...]
Use early and often, it's a great way of checking for syntax errors on your pages.
Activating the Right Layout Mode Using the Doctype Declaration
[hsivonen.iki.fi...]