Page is a not externally linkable
nelsonm - 6:27 pm on Nov 12, 2012 (gmt 0)
hi all,
the site that I'm developing uses javascript, jQuery, Ajax calls to php and standard html tags. I want the site to be future proof.
So my question is...
What should the !DOCTYPE and HTML tags look like now?
I'm currently using the following:
<!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'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
From what i've been reading about HTML5, it appears i should be using the following:
<!DOCTYPE html>
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
But i also want to make sure the html documents are marked up correctly and "well-formed" which is what the XHTML attribute is for.
So how should it be constructed to handle HTML5 and still be marked up correctly?