adc

clicks

How to Create Calendar With html and css

 How to create a simple and design calender by using html and css. you just see and practice then you can di it very easily.


HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.


  • <!DOCTYPE html>
  • <html>
  • <head>
  •             <title>how to create calender</title>
  •             <link rel="stylesheet" type="text/css" href="style.css">
  • </head>
  • <body>
  •             <div class="calender">
  •                         <div class="month">
  •                                     <strong>OCTOBER</strong>
  •                                     <strong>2020</strong>
  •                         </div>
  •                         <table>
  •                                     <tr>
  •                                                 <th>Sun</th>
  •                                                 <th>Mon</th>
  •                                                 <th>The</th>
  •                                                 <th>Wed</th>
  •                                                 <th>Thu</th>
  •                                                 <th>Fri</th>
  •                                                 <th>Sat</th>
  •                                     </tr>
  •                                     <tr>
  •                                                 <td></td>
  •                                                 <td></td>
  •                                                 <td>1</td>
  •                                                 <td>2</td>
  •                                                 <td>3</td>
  •                                                 <td>4</td>
  •                                                 <td>5</td>
  •                                     </tr>
  •                                     <tr>
  •                                                 <td>6</td>
  •                                                 <td>7</td>
  •                                                 <td>8</td>
  •                                                 <td>9</td>
  •                                                 <td>10</td>
  •                                                 <td>11</td>
  •                                                 <td>12</td>
  •                                     </tr>
  •                                     <tr>
  •                                                 <td>13</td>
  •                                                 <td>14</td>
  •                                                 <td>15</td>
  •                                                 <td>16</td>
  •                                                 <td>17</td>
  •                                                 <td>18</td>
  •                                                 <td>19</td>
  •                                     </tr>
  •                                     <tr>
  •                                                 <td>20</td>
  •                                                 <td>21</td>
  •                                                 <td>22</td>
  •                                                 <td>23</td>
  •                                                 <td>24</td>
  •                                                 <td>25</td>
  •                                                 <td>26</td>
  •                                     </tr>
  •                                     <tr>
  •                                                 <td>27</td>
  •                                                 <td>28</td>
  •                                                 <td>29</td>
  •                                                 <td>30</td>
  •                                                 <td>31</td>
  •                                                 <td></td>
  •                                                 <td></td>
  •                                     </tr>
  •                         </table>
  •             </div>
  • </body>
  • </html>

 CSS 

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser. 


body{
            background-image: url(bg.jpg);
            background-size: cover;
            background-repeat: no-repeat;
            pa
 
}
.calender{
           
            max-width: 800px;
            font-family: serif;
            font-weight: bold;
            color: black;
            margin: 10% 10%;
}
.month{
            text-align: center;
            background: white;
            font-size: 80px;
            letter-spacing: 1px;
            color: black;
            border:3px solid blue;
}
table, th, td{
            width: 100%;
            table-layout: fixed;
            text-align: center;
            font-size: 27px;
            border-collapse: collapse;
            border:5px solid black;
            font-family: Elaphant;
}
tr, th, td{
            padding: 15px;
}
th{
            background: #009900;
            color: white;
            font-family: arial black;
}
td{
            background: #00264d;
            color: yellow;
}
td:hover{
            background: green;
}

 

 


Youtube

watch video


 

 

How to Create Calendar With html and css How to Create Calendar With html and css Reviewed by easycoding on September 09, 2020 Rating: 5

No comments:

Powered by Blogger.