Slip 27 - B) 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.

Solution:


<html>

<body>

 <table cellpadding="10" border="10" cellspacing="10"> <h1> <img src="1.png" height="40" width="70" border="1" align="left">january 2021 <img src="1.png" height="40" width="70" border="1" align="right"></h1>

 <tr>

<th><font color="red">sun</font></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>1</th>

<th>2</th>

<th>3</th>

<th>4</th>

</tr>

 <tr>

<th><font color="red"><b>5</font></th>

<th>6</th>

<th>7</th>

<th>8</th>

<th>9</th>

<th>10</th>

<th>11</th>

</tr>

 <tr>

<th><font color="red"><b>12</font></th>

<th>13</th>

<th>14</th>

<th>15</th>

<th>16</th>

<th>17</th>

<th>18</th>

</tr>

 <tr>

<th><font color="red"><b>19</font></th>

<th>20</th>

<th>21</th>

<th>22</th>

<th>23</th>

<th>24</th>

<th>25</th>

</tr>

<tr>

<th><font color="red"><b>26</font></th>

<th>27</th>

<th>28</th>

<th>29</th>

<th>30</th>

<th>31</th>

<th> </th>

</tr>

 </table>

</body>

</html>

Post a Comment

0 Comments