HTML and CSS Reference
In-Depth Information
Figure 1-1: The final game.
Now, it's time to get started.
Adding the Boilerplate HTML and CSS
The main boilerplate for an HTML5 file is minimal. You get a valid HTML file with a <canvas> element
inside of a container centered on the page, as shown in Listing 1-1 .
Listing 1-1: Boilerplate game HTML
<html lang="en">
Search WWH ::

Custom Search