When you make a page written in XHTML, is it's extension .xhtml or still .html?
| SitePoint Sponsor |
When you make a page written in XHTML, is it's extension .xhtml or still .html?


.html should work fine.
Well, usually .html, could be .xml in normal setups too. You can use .xhtml if you set up the server for that.
There's no registered mime type for xhtml yet, it's served as text/html or text/xml at the moment. Going by apache's default settings for mime types of the extensions.
I believe it is the "doctype" definition which carries importance, not the extension.
H
(so basically, use .htm or .html )
~The Artist Latterly Known as Crazy Hamster~
922ee590a26bd62eb9b33cf2877a00df
Currently delving into Django, GIT & CentOS





you could have any extension. .php too if you're using seeverside scripts.
just make sure your code is validated for xhtml 1.0 and it carries the xhtml doctype.
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
Bookmarks