Slip 6 - 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>

<head>

<style>

body

{

background-image: url("Blue Water Background.jpg");

}

</style>

</head>

<body>

<b><font color="red">March 2020</font></b>

<table border=1>

<tr>

<td><font color="red">Sun</font></td>

<td>Mon</td>

<td>Tues</td>

<td>Wed</td>

<td>Thurs</td>

<td>Fri</td>

<td>Sat</td>

</tr>

<tr>

<td><font color="red">1</font></td>

<td>2</td>

<td>3</td>

<td>4</td>

<td>5</td>

<td>6</td>

<td>7</td>

</tr>

 <tr>

<td><font color="red">8</font></td>

<td>9</td>

<td>10</td>

<td>11</td>

<td>12</td>

<td>13</td>

<td>14</td>

</tr>

</table>

</body>

</html>

Post a Comment

0 Comments