Often times I end up creating short pages for testing short pieces of code, and I only need a very basic HTML template to write in. Short of using HTML5 Boilerplate, I just use a quick piece of code like the following. (note: yes, this has issues in IE, so you may want to use HTML5 Shiv/Shim)

The code

<!doctype html>
  <meta charset="utf-8"/>

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
  <link rel="stylesheet" href=""/>




  <script src=""></script>


Edit: Self-closed tags for compatibility.
Edit2: removed type=”text/css” from the link tag