HTML 5 Template

This is a minimalist template for an HTML 5 document. I typically use this as a starting point for web based apps.

<!DOCTYPE html>
 
<head>
 
	<title>[Title]</title>
 
	<!-- Internal Javascript -->
	<script type="text/javascript">
		// Put code here or set the src attribute
	</script>
 
	<!-- External Javascript -->
	<script src="main.js"></script>
 
	<!-- Internal CSS -->
	<style type="text/css">
 
		* { box-sizing: border-box; }
		body { background-color: white; margin: 0; padding: 0; font-family: sans-serif; font-size: 12px; }
		p { margin-bottom: 10px; }
 
	</style>
 
	<!-- External CSS -->
	<link rel="stylesheet" type="text/css" href="style.css">
 
</head>
 
<body>
 
	<p>Hello World!</p>
 
</body>
 
</html>
comments powered by Disqus
html_5_template.txt · Last modified: 2020/06/01 22:53 (external edit)