-
☆ A M B ☆
- 1,231 Posts
Hey, I’m one for trying to create sites as strict as possible, personal preference really and everything so far works. All my pages validate using strict xhtml 1.0 but I was wondering what is recommended and what is best practice. Reading up on all the different DOC types etc is getting me confused... With out being to in depth, what would be best used for keeping up with web standards?
My latest site uses
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-
☆ A M B ☆
- 1,231 Posts
So it would be best to use
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
only?
-
MODX Staff
- 12,272 Posts
Google for "XML prolog problem" and you’ll find all sorts of good info with lots of background and explanation. Good luck!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 1,231 Posts
I tried the XHTML 1.1 and it validated fine but there was an error with the MIME settings... Still validated as I said. What do I need to do to get the MIME setting to be correct or is this something I need to contact my host about? I read that it requires Apache to be edited.
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Bit reactionary, but I say why bother with XHTML until:
i. IE supports XHTML
ii. IE disappears
Not too likely for a while yet...
IE does not support XHTML served correctly (and isn’t even aiming to in the near future).
If you’re already using it without problems there’s no reason to change back to HTML (it works for the vast majority of its users out there), but at the same time ~80% of the world won’t benefit from the fact that you’re using XHTML and not HTML.
XHTML is great if you can control the browsers your users are accessing with and you actually have the need for its features.
A vote for HTML 4 Strict here at the moment.
-
☆ A M B ☆
- 1,231 Posts
Thanks for the input... I’m stick with XHTML 1.0 strict for now. Everything Validates 100% and so does the css so all is good. I’ll be posting my 2 new sites for you guys to check out and see what you think.
-
MODX Staff
- 12,272 Posts
As long as you don’t need to work with many Ajax libraries like Mootools, HTML doctypes are just fine indeed.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me