Return to Snippet

Revision: 20521
at November 17, 2009 17:30 by mahalie


Initial Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>SITENAME</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" href="" media="screen,projection" type="text/css" />
<link rel="stylesheet" href="" media="print" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="SITENAME Updates" href="" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" charset="utf-8">
$(function(){
});
</script>
</head>
<body>
<div id="wrapper">
  <h1>SITENAME</h1>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("YOUR-UA-GOES-HERE");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

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

Initial Description
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.

Initial Title
XHTML 1 Strict Complete Starter Template

Initial Tags
css, template, xhtml, jquery, starter

Initial Language
HTML