Posted By

mahalie on 11/17/09


Tagged

css rss template xhtml strict jquery favicon starter Analytics validated


Versions (?)

Who likes this?

8 people have marked this snippet as a favorite

daveonkels
nerdfiles
davelk
brunomoniz
wanderlusts
jay3917
mat_jack1
gemmes


XHTML 1 Strict Complete Starter Template


 / Published in: HTML
 

URL: http://23rdworld.com/templates/xhtml1_strict.html

There are a lot of 'starters' out there but I wanted one with all the things I use to start a new project. I find it easier to remove lines I don't need than to hunt and peck for each item...this also makes the starter serve as a sort of 'checklist' to make sure all the essentials are there for a stand-alone page, great for quickly creating a robust 'coming soon' page for a new website.

  • Basic XHTML

  • Common includes: CSS, JQuery, RSS, Favicon

  • Google analytic tracking code

I refrained from including paths so that mistakes aren't easily overlooked. Use search & replace to quickly change SITENAME and don't forget you need your own GA tracker code.

  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" xml:lang="en" lang="en">
  3. <title>SITENAME</title>
  4. <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
  5. <meta name="robots" content="index, follow" />
  6. <meta name="description" content="" />
  7. <meta name="keywords" content="" />
  8. <link rel="icon" type="image/x-icon" href="/favicon.ico" />
  9. <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
  10. <link rel="stylesheet" href="" media="screen,projection" type="text/css" />
  11. <link rel="stylesheet" href="" media="print" type="text/css" />
  12. <link rel="alternate" type="application/rss+xml" title="SITENAME Updates" href="" />
  13. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  14. <script type="text/javascript" src=""></script>
  15. <script type="text/javascript" charset="utf-8">
  16. $(function(){
  17. });
  18. </head>
  19. <div id="wrapper">
  20. <h1>SITENAME</h1>
  21. </div>
  22. <script type="text/javascript">
  23. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  24. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  25. <script type="text/javascript">
  26. try {
  27. var pageTracker = _gat._getTracker("YOUR-UA-GOES-HERE");
  28. pageTracker._trackPageview();
  29. } catch(err) {}</script>
  30. </body>
  31. </html>

Report this snippet  

You need to login to post a comment.