XHTML 1.1 Strict Starter Page

 / Published in: HTML

This is the general page template that I usually start with. It has all of the essentials (along with a favicon link - not essential).

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title>untitled</title>
  6. <meta name="description" content="content" />
  7. <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen" />
  8. <link rel="stylesheet" href="/css/print.css" type="text/css" media="print" />
  9. <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
  10. </head>
  11. <body>
  12. <div id="header">
  14. </div>
  15. <div id="nav">
  17. </div>
  18. <div id="main">
  20. </div>
  21. <div id="footer">
  23. </div>
  24. </body>
  25. </html>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Kerrick on July 28, 2008

Wonderful! Exactly what I was looking for: A template without filler text, but with everything you could need.

Posted By: Jo-W on October 8, 2008

Please note that this is not valid XHTML 1.1, the content-type is text/html which is not allowed on 1.1 and up

The content-type of XHTML 1.1 and up must be one of: application/xhtml+xml application/xml text/xml

However, the content-type of XHTML 1.0 must be one of: text/html application/xhtml+xml application/xml text/xml

This means that internet explorer does not currently support XHTML 1.1 Also see: http://www.w3.org/TR/xhtml-media-types/#summary

Posted By: antojp95 on February 14, 2018


You need to login to post a comment.