Posted By

jatkins on 01/13/08


Tagged

css template html xhtml doctype stylesheet templates charset doctypes


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

frakim
kurrent
SilverFirefly
jschilling


XHTML 1.0 Strict Template (DOCTYPE, charset, stylesheet)


 / Published in: HTML
 

100% valid (validates against the W3C's validator).

Add profile="http://gmpg.org/xfn/11" to the 'head' element for social stuff.

Stylesheet media type is "all", so you can do different media types in one file (http://meiert.com/en/blog/20070221/print-style-sheets-the-basics-for-no-excuses/).

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <link rel="stylesheet" type="text/css" media="all" href="" />
  6. </head>
  7. <body>
  8. </body>
  9. </html>

Report this snippet  

You need to login to post a comment.