ChessBoard using CSS

Create a table for ChessBoard. The board should be alternating colors and an eight-by-eight grid. Here are the UNICODE characters you'll need for the pieces.

  • White King: ♔
  • White Queen: ♕
  • White Rook: ♖
  • White Bishop: ♗
  • White Knight: ♘
  • White Pawn: ♙
  • Black King: ♚
  • Black Queen: ♛
  • Black Rook: ♜
  • Black Bishop: ♝
  • Back Knight: ♞
  • Black Pawn: ♟

Use CSS for providing required styles for ChessBoard.

ChessBoardUsingCSS.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Chess Board using CSS</title>
  <style type="text/css">
    table{
      border-style: solid;
      width: 50%;
    }
    tr{
      height: 80px;
    }
    td{
      font-size: 60px;
      text-align: center;
    }
    .bgwhite{
      background-color: white;
    }
    .bggrey{
      background-color: grey;
    }
  </style>
</head>
<body>
<table align="center">
  <tr>
    <td class="bgwhite">&#9820;</td>
    <td class="bggrey">&#9822;</td>
    <td class="bgwhite">&#9821;</td>
    <td class="bggrey">&#9818;</td>
    <td class="bgwhite">&#9819;</td>
    <td class="bggrey">&#9821;</td>
    <td class="bgwhite">&#9822;</td>
    <td class="bggrey">&#9820;</td>
  </tr>
  <tr>
    <td class="bggrey">&#9823;</td>
    <td class="bgwhite">&#9823;</td>
    <td class="bggrey">&#9823;</td>
    <td class="bgwhite">&#9823;</td>
    <td class="bggrey">&#9823;</td>
    <td class="bgwhite">&#9823;</td>
    <td class="bggrey">&#9823;</td>
    <td class="bgwhite">&#9823;</td>
  </tr>
  <tr>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
  </tr>
  <tr>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
  </tr>
  <tr>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
  </tr>
  <tr>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
    <td class="bggrey"></td>
    <td class="bgwhite"></td>
  </tr>
  <tr>
    <td class="bgwhite">&#9817;</td>
    <td class="bggrey">&#9817;</td>
    <td class="bgwhite">&#9817;</td>
    <td class="bggrey">&#9817;</td>
    <td class="bgwhite">&#9817;</td>
    <td class="bggrey">&#9817;</td>
    <td class="bgwhite">&#9817;</td>
    <td class="bggrey">&#9817;</td>
  </tr>
  <tr>
    <td class="bggrey">&#9814;</td>
    <td class="bgwhite">&#9816;</td>
    <td class="bggrey">&#9815;</td>
    <td class="bgwhite">&#9812;</td>
    <td class="bggrey">&#9813;</td>
    <td class="bgwhite">&#9815;</td>
    <td class="bggrey">&#9816;</td>
    <td class="bgwhite">&#9814;</td>
  </tr>
</table>
</body>
</html>