XHTML 1 Strict Complete Starter Template

/ Published in: HTML
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  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>

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

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.