[thelist] Current recommendation for doctype and <html> tags.

David Laakso david at chelseacreekstudio.com
Wed Sep 1 09:11:04 CDT 2010


Bill Moseley wrote:
> I've been using:
>
> <!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">
>
> But talking to a designer yesterday they said that the current
> recommendation is to just us <html> and a reduced html5 doctype.
>
> <!DOCTYPE html>
> <html>
>
> We don't support older browsers so I'm wondering what issues I need to be
> aware of.
>
> Thanks,
>
>   






Not much other than HTML5 [1] is still a bit of a moving target at the 
moment [2]...


<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>:: whatever ::</title>

<link rel="stylesheet" href="#" type="text/css" />
<!--[if IE]>
<script 
type="text/javascript">document.createElement("header");document.createElement("article");document.createElement("section");document.createElement("nav");document.createElement("footer");</script>
<![endif]-->


[1] <http://dev.w3.org/html5/spec/Overview.html>
[2] <http://html5doctor.com/>



Best,
~d

-- 
:: desktop and mobile ::
http://chelseacreekstudio.com/



More information about the thelist mailing list