09-10-2008

CSS/(X)HTML Some clean (X)HTML template examples

Just to get started. The bare necessities:

HTML5 :

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
 
<link rel="stylesheet" href="css/main.css" type="text/css" />
 
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
 
<body id="index" class="home">
</body>
</html>
 

XHTML 1.0 transitional:

(Find additional dtd's here)

<!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">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title></title>
</head>
 
<body>
</body>
</html>
 

HTML 4.01 Transitional:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
<link>
</head>
<body>
 
</body>
</html>

Add some Javascript and CSS to head section:

<script language="javascript" type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<link rel="stylesheet" type="text/css" href="css/main.css" />

Add some meta tags to head:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="blabla" />
<meta name="keywords" content="nbla, adad" />
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="30 days" />
<meta name="author" content="The Authors Name" />	 
 

--:place your HTML content here:--

Comments:

Your comment:

»

 

[x]