640x480 canvas
HTML
<!DOCTYPE html>
<html>
<head>
<title>I think Cats Are Great</title>
<style>
*{
padding: 0;
margin: 0;
}
html,body{
height: 100%;
width: 100%;
}
canvas{
display: block;
margin: auto;
background-color: #000;
top: 0;
bottom: 0;
}
</style>
</head>
<body>
<canvas id="gameCanvas" width="640" height="480"></canvas>
</body>
</html>
JavaScript
var canvas = document.getElementById('gameCanvas');
var c = canvas.getContext('2d');
console.log(c);