Assignment-1 Create a Table

Create a table structure as shown below using colspan and rowspan attributes

Solution Html Code

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Assignment_1_table</title>
  <link rel="stylesheet" href="Css/style.css" />
  <link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>

  <style>
    table,
    th,
    td {
      border: 1px solid black;
      border-collapse: collapse;
    }

    td {

      height: 20px;
      width: 120px;

    }
  </style>

</head>

<body>

  <!--Create a table structure as shown below using colspan and rowspan attributes-->


  <table>

    <tr>
      <td colspan="6"></td>


    </tr>

    <tr>
      <td rowspan="4"></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>

    </tr>

    <tr>

      <td></td>
      <td rowspan="2"></td>
      <td rowspan="2"></td>
      <td rowspan="2"></td>
      <td></td>

    </tr>

    <tr>
      <td></td>
      <td></td>




    </tr>

    <tr>
      <td></td>
      <td></td>

      <td></td>
      <td></td>
      <td></td>

    </tr>

    <tr>
      <td colspan="6"></td>


    </tr>

  </table>



</body>


</html>