I am trying to create a chess board.I am using nested loops to do that. The problem is that there is a gap between two horizontal rows of the block. Below I have create a snippet for 3x3 board.
const board = document.querySelector('#board');
const colors = ["black","gray"]
function start(){
    for(let i = 0;i<3;i++){
        let br = document.createElement('br')
        for(let j = 0;j<3;j++){
            let block = document.createElement('div');
            block.classList.add('block');
            let id = (i * 8) + j
            block.id = id;
            block.style.backgroundColor = colors[(id+i) % 2]
            board.appendChild(block)
        }
        board.appendChild(br)
    }
}
start().block{
    height: 70px;
    width: 70px;
    display:inline-block;
}<div id="board"></div>I already head about solution using float:left instead of display:inline-block. How could I remove the gap? 
I would also like to see if there is better code for creating chessboard?
 
     
     
     
    