Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what browsers you'll support and it's different for everyone.
Good luck,
-Conrad
Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what browsers you'll support and it's different for everyone.
Good luck,
-Conrad
Nick, The use of rails doesn't effect your doctypes. See this article for a clear explanation on the difference between strict vs. transitional doctypes and their proper uses:
Best, BJ Clark
Use a before_filter in your application controller to set the headers correctly. Something like:
def set_encoding if request.env["HTTP_ACCEPT"] && request.env["HTTP_ACCEPT"].index('application/xhtml+xml') headers["Content-Type"] = "application/xhtml+xml; charset=utf-8" else headers["Content-Type"] = "text/html; charset=utf-8" end end