how do I create a html table tilemap from an array? For example when I want the "0"s to be a "td" with a green background and 20px width and height and the "1"s to be a "td" with a brown background with the same size? Could anyone give an example for this array? Additionally, I would like to know how to insert a picture into a specific "td" element? for example a tree picture in the "td" element on the position table[0][0] with a green background, thanks.
var table = [
[0,1,1,1,0],
[0,1,0,0,0],
[0,1,1,0,0],
[0,0,1,0,0],
[1,1,1,0,0]
]