Project: Writing JavaScript Chess

Where am I?
hosting > /games/ > /chess/

Create the Chess Board Using HTML and CSS

A Chess board is basically a matrix consisting of 8 horizontal squares in 8 vertical rows. An HTML TABLE is ideal for this structure.

Create basic HTML structure to simulate board

Code View:

Because some popular browsers like to ignore empty table cells instead of drawing them, I'm having to add an IMG tag inside each TD cell to force the browser to render cell. This bloats the HTML considerably. If you've got ideas about other ways to achieve the effect, try them out and see if you can find a more graceful, less code intensive way.


Fun Stuff and Additional Resources:

Additional Keywords: learing to build html chess board using javascript