Este va a ser un ajedrez de 8 x 8.
¿Cómo lo hice?
El código quedó así:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
display: flex;
height: 400px;
width: 400px;
background-color: aliceblue;
flex-direction: column;
}
.item-container{
height: 50px;
width: 100%;
display: inline-grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr;
}
.item-container:nth-child(even) .item:nth-child(even){
background-color: black;
}
.item-container:nth-child(odd) .item:nth-child(odd){
background-color: black;
}
</style>
</head>
<body>
<divclass="container">
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
<divclass="item-container">
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
<divclass="item"></div>
</div>
</div>
</body>
</html>```