Posted By

antpaw on 11/06/08



Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


XHTML 1.0 Strict Framework

 / Published in: XHTML

I use this to get started with my new page

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
  2. <html xmlns="">
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <link rel="icon" type="image/x-icon" href="favicon.ico" />
  5. <link rel="stylesheet" type="text/css" href="style.css" media="screen" />
  6. <title>XHTML</title>
  7. </head>
  8. <div class="wrap">
  9. <div class="header">
  11. </div>
  12. <div class="main">
  13. <div class="content">
  15. </div>
  16. <div class="sidebar">
  18. </div>
  19. </div>
  20. <div class="clearer"></div>
  21. <div class="footer">
  23. </div>
  24. </div>
  25. </body>
  26. </html>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: justinscheetz on January 12, 2009

Needs some more default meta tags, but a nice start for my projects. Thanks!

Posted By: preasha on February 22, 2009

when you miss the xml-declaration-tag and specify the content-typ as "text/html", save your time and use the html doctype right from the start. Most modern user agents use their sgml-oriented parser by default, when neither a xml-decl-tag together with a content-type like "application/xhtml+xml" exist, nor the file extension is like xhtml. And, FYI: by default Apache sends html files as "text/html". So under those conditions, the intention to make use of the advantage of the xhtml cannot be achieved, due to a fragmentary implementation/configuration.

You need to login to post a comment.