New document template, CSS, JS, HTML

Filed under: CSS

comments (2) Views: 7,242

Over the past 5 or 6 years since I've gotten deep into CSS development, I've slowly and surely created a generic template that I use for any new HTML project. While it's not perfect, it's an excellent starting point for most new websites, or web applications. For quick development, I use a text editor called Editplus. It's fast, and offers a whole raft of features including the ability to define a template for any number of file types. The template I use contains most of the things that I want in any new document. While it mostly consists of CSS declarations, it does also have some quick hooks for jQuery, JavaScript, and CSS includes. So here it you have any suggestions for good additions, or questions?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" lang="en" xml:lang="en">
	<title> new document </title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

	<meta name="author" content="" />
	<meta name="keywords" content="" />
	<meta name="description" content="" />

	<link href="includes/styles.css" rel="stylesheet" type="text/css" />

	<script src="includes/js.js" type="text/javascript"></script>

	<script type="text/javascript">

	<style type="text/css">

	/* set the page background color and margins. */
	body {
		margin: 0px;
		background: #ffffff;

	/* set the page font formatting. */
	body, p, div, td {
		font-family: verdana;
		font-size: 9pt;
		color: #000000;

	/* default link colors - this is the default link color for the page */
	a:link { font-weight: bold; text-decoration: none; color: #2b4d8a; } /* standard link color */
	a:visited { font-weight: bold; text-decoration: none; color: #2b4d8a; } /* visited link color*/
	a:visited:hover { font-weight: bold; text-decoration: none; color: #000000; } /* visited hover link color*/
	a:hover { font-weight: bold; text-decoration: none; color: #000000; } /* hover over an unvisited link color */
	a:active { font-weight: bold; text-decoration: none; color: #2b4d8a; } /* active link color */




Amazon logo

If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!

comments powered by Disqus