write HTML code for following table

write HTML code for the following table


write HTML code for following table

Given the table is

*the table above is taken reference from vturesource*
fig author:vturesource.

Answer:

<html>
<head></head>
<body>

<table style="border:1px solid black;>

<tr>
      <th colspan="2">TimeDay</th> <!--Each column will take two row--->
      <th>9.00AM to 1.15PM</th>
      <th>2.00Pm to 5.00PM</th>
</tr>

<tr>
       <td rowspan="2">Mon to Fri</td> <!--Each row will take two column--->
       <td>Sub</td>
       <td>Theory Class</td>
       <td>ML/WTLAB</td>
</tr>

<tr>
        <td>F1</td>
        <td>ABC/EFG/XYZ</td>
        <td>AD Block, 1st Floor</td>
</tr>

<tr>
       <td rowspan="2">   </td> <!--Each row will take two column--->
       <td>Sub</td>
       <td colspan="2" rowspan="2">Extra Curicular Activity</td> <!--Each row and column will take two column and row--->
</tr>

<tr>
       <td colspan="2" rowspan="2">   </td><!--Each row and column will take two column and row--->

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

</table>

</body>

</html>

Other Question With Answer



















No comments:

For Query and doubts!

Powered by Blogger.