When you make a page written in XHTML, is it's extension .xhtml or still .html?
Printable View
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 )
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.