Alert Dialog Example 1: Number Guessing Game

Number Guessing Game

Instructions: In this game you guess a number between 1 an 10 and then press the "Check My Guess" button to check your responses. An ARIA dialog box will display the results of your guess. To start over again to press the "Play Again" button.

Keyboard Shortcuts

ARIA Roles and Properties

Example Notes

HTML Source Code

Show HTML Source Code:

Javascript Source Code

Show Javascript Source Code: alertdialog1.js

CSS Source Code

Show CSS Source Code: alertdialog1.css

W3C Validation of HTML5