© Zarrar Chishti 2017

Zarrar Chishti, Cross Over to HTML5 Game Development, https://doi.org/10.1007/978-1-4842-3291-0_3

3. Time to Apply a Little CSS

Zarrar Chishti

(1)Glasgow, UK

    #tower-of-pisa        {           font-style: italic;        }

CSS, which stands for Cascading Style Sheets, is a language that is used to help style and design web sites . It can be used to describe how the page should look in terms of color, layout, and fonts.

So why do we need this for our game? Previously, we imagined HTML as the skeleton or bone structure of our game. CSS code will be the look and appearance of our game. If you are familiar with building web sites, however, you may be wondering how big a role CSS actually plays in HTML5 game development .

With the ...

Get Cross Over to HTML5 Game Development: Use Your Programming Experience to Create Mobile Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.