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

6. Quiz

Jeanine Meyer1 
(1)
Purchase, NY, USA
 
In this chapter, we cover
  • Creating HTML elements by code

  • Responding to clicks of the mouse on specific elements and stopping responding to clicks of the mouse on specific elements

  • Creating and accessing arrays

  • Playing an audio clip and a video clip

  • Checking player responses and preventing bad behavior

Introduction

This chapter demonstrates how HTML elements can be created dynamically and then positioned on the screen. This is in contrast not only to drawing on a canvas element but also to the old way of creating more or less static web pages using HTML markup. Our goal is to produce a quiz in which the player ...

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.