© Jeanine Meyer 2018
Jeanine MeyerThe Essential Guide to HTML5https://doi.org/10.1007/978-1-4842-4155-4_10

10. Blackjack

Jeanine Meyer1 
(1)
Purchase, NY, USA
 
In this chapter, we cover
  • The footer and header tags, which are new to HTML5

  • Capturing key presses

  • Programmer-defined objects

  • Generating Image elements using a set of external image files

  • Shuffling a deck of cards

Introduction

The objective of this chapter is to combine programming techniques and HTML5 and JavaScript features to implement the card game blackjack, also called 21. The implementation will use new tags introduced in HTML5, namely footer and header . We will use the footer to give credit to the source for the card images and the website we are using for the shuffling algorithm. The cards ...

Get The Essential Guide to HTML5: Using Games to Learn HTML5 and JavaScript 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.