Freese/XHTML Strict starter ( HTML)
<!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> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Sample Title</title> </head> <body> </body> </html>
mahalie/XHTML 1 Strict Complete Starter Template ( HTML)
<!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>
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.
jonhenshaw/XHTML 1.1 Strict Starter Page ( HTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>untitled</title> <meta name="description" content="content" /> <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/css/print.css" type="text/css" media="print" /> <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" /> </head> <body> <div id="header"> </div> <div id="nav"> </div> <div id="main"> </div> <div id="footer"> </div> </body> </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).
almendro/XHTML 1.1 Strict Starter Page ISO-8859-1 español ( XHTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>Titulo</title> <meta name="description" content="content" /> <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/css/print.css" type="text/css" media="print" /> <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" /> </head> <body> <div id="pagina"> <div id="cabecera"> </div><!-- #cabecera --> <div id="menu"> </div><!-- #menu --> <div id="principal"> </div><!-- #principal --> <div id="pie"> </div><!-- #pie --> </div><!-- #pie --> </body> </html>
Based in http://snipplr.com/view/102
threadflow/XHTML 1.0 Strict ( HTML)
<!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> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Sample Title</title> </head> <body> </body> </html>
ipater/XHTML DE Starter ( Other)
<!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="de" lang="de"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Sample Title</title> </head> <body> </body> </html>
chrisdpratt/Object Tag to Replace Iframe in XHTML 1.0 Strict ( XHTML)
<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html" data="object.html" style="width:300px;height:200px;">
<p>Fallback text</p>
</object>
Example object tag for including external content that would normally be included via iframes.
glends/XHTML blank template ( XHTML)
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Conforming XHTML 1.0 Strict Template</title>
</head>
<body>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.1");
var page = {
init: function() {
// constructor code
},
isthisavalidpage: true
};
google.setOnLoadCallback(page.init);
</script>
</body>
</html>
snippetsdemo/HTML Strict starter ( HTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Sample Title</title> </head> <body> </body> </html>
levio/XHTML Strict ( XHTML)
<!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" dir="ltr"> <head> <title>simple document</title> </head> <body> <p>a simple paragraph</p> </body> </html>
threadflow/HTML 4.01 Strict ( HTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Sample Title</title> </head> <body> </body> </html>
Freese/XHTML Transitional starter ( HTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Sample Title</title> </head> <body> </body> </html>
threadflow/XHTML 1.1 ( HTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> </body> </html>
narmolanya/XHTML 1.0 Strict Template ( HTML)
<?xml version="1.0" encoding="utf-8"?>
<!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="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<title>Title Here</title>
<!-- CSS Links -->
<link rel="stylesheet" href="basic.css" type="text/css" media="screen" />
<link rel="alternate stylesheet" type="text/css" href="alternative.css" title="alternative" />
<!-- Scripts Here -->
<script src="../js/script1.js" type="text/javascript"></script>
<script src="../js/script2.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
Hirmine/Strict XHTML Example ( XHTML)
<!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" lang="es" xml:lang="es"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>simple document</title> </head> <body> <p>a simple paragraph</p> </body> </html>
XHTML DTD