How do you set up your web server & document's html to correctly serve HTML5 documents?
Posted
by joedevon
on Stack Overflow
See other posts from Stack Overflow
or by joedevon
Published on 2009-09-03T04:04:04Z
Indexed on
2010/06/01
1:33 UTC
Read the original article
Hit count: 257
Maybe I'm an idiot but I don't quite get what goes in the header of my HTML to use XHTML w/ HTML5. Is this still good and we just add the HTML5 tags?:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" lang="eng" xmlns="http://www.w3.org/1999/xhtml">
Or is it <!DOCTYPE html>
or what?
Then at A List Apart they say:
If you do go with XHTML 5, remember that your server must deliver the documents with a MIME type of application/xhtml+xml or text/xml.
Please explain to me as if I was stupid :) what that means in a practical sense? "deliver the documents"? Meaning html? What happens to php? What are the steps required to set up your web server this way?
© Stack Overflow or respective owner