3. Write a HTML code to display calendar of current month in tabular format. Use proper color for week days and holidays. Display month name, year and images as advertisement at the beginning of the calendar.

 Program :

<html>

    <body><center>

    <table Cellpadding="10">

    <CAPTION><H1>APRIL 2023</H1></CAPTION>

    <tr><img src="NRC.png" height="50px" width="500px" > </tr>

   <tr>

    <th><font color="RED">SUN</th><th>MON</th><th>TUS</th>

    <th>WED</th><th>thU</th><th>FRI</th><th>SAT</th>

    </tr>

    <tr>

    <th> </th><th> </th><th> </th><th></th>

    <th></th><th></th><th>1</th>

    </tr>   

    <tr>

    <th><font color="RED"><b>2</th><th>3</th><th><font color="green"><b>4</b></th>

    <th>5</th><th>6</th><th><font color="green"><b>7</b></th><th>8</th>

    </tr>   

    <tr>

    <th><font color="RED"><b>9</th><th>10</th><th>11</th>

    <th>12</th><th>13</th><th><font color="green"><b>14</b></th><th><font color="green"><b>15</b></th>

    </tr>  

    <tr>

               <th><font color="RED"><b>16</th><th>17</th><th>18</th>

               <th>19</th><th>20</th><th><font color="green"><b>21</b></th><th><font color="green"><b>22</b></th>

    </tr>  

    <tr>

    <th><font color="RED"><b>23</th><th>24</th><th>25</th>

    <th>26</th><th> 27</th><th>28 </th><th> 29</th>

    </tr>

    <tr>

    <th><font color="RED"><b>30</th></tr>

    </table>

    </center>

    </body>

</html>

<th>19</th><th>20</th><th><font color="green"><b>21</b></th><th><font color="green"><b>22</b></th>

    </tr>  

    <tr>

    <th><font color="RED"><b>23</th><th>24</th><th>25</th>

    <th>26</th><th> 27</th><th>28 </th><th> 29</th>

    </tr>

    <tr>

    <th><font color="RED"><b>30</th></tr>

    </table>

</center>

    </body>

 </html>

Output Screen



No comments:

Post a Comment