We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

jatkins on 01/13/08


Tagged

css template html xhtml doctype stylesheet templates charset doctypes


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

frakim


XHTML 1.0 Strict Template (DOCTYPE, charset, stylesheet)


Published in: HTML 


100% valid (validates against the W3C's validator), pure XHTML. Enjoy!

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.