Dispaly a grid in html : I am a social sciences researchers and I am trying to create a task for an online study. The task is the following: a grid with shaded and white squares will be displayed and the task consist in counting the nb of shaded squares (as in the example). Different grids, with varying number of shaded squares will be shown to the participants in the study.

I have the program that randomly generates an array of 0s and 1s in javascript and stores the number of 1s (answer for the problem=nb of coloured squares). 
What I need is to be able to display the array of numbers in a grid in html. Any ideas would be very welcome and extremely helpful. 

[enter image description here][1]


  [1]: http://i.stack.imgur.com/3F9IJ.jpg


In any case, thanks a lot!

Juliana
