Page 179 - CITS - CSA - TP (Volume 1) - Hindi
P. 179

कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS



              </style>
              </head>

              <body>
              <h1 class=”center”>This heading is red and center-aligned.</h1>
              <p class=”center”>This paragraph is blue and right-aligned.</p>
              <p class=”center”>This paragraph is blue and right-aligned.</p>
              </body>
              </html>
           3   ो ाम को .html फ़ाइल के   प म  सेव कर

           4  वेब  ाउज़र से html फ़ाइल ओपन कर
           5  आउटपुट की पुि  कर ।














           टा  4: CSS यूिनवस ल िसले र का उपयोग करना

           1  टे  एिडटर ओपन कर
           2  िन िल खत कोड िलख
              <html>
              <head>

              <style>
              * {
              color: green;
              font-size: 20px;
              }

              </style>
              </head>
              <body>
              <h2>This is heading</h2>
              <p>This style will be applied on every paragraph.</p>
              <p id=”para1”>Me too!</p>

              <p>And me!</p>
              </body>
              </html>

           3   ो ाम को .html फ़ाइल के   प म  सेव कर
           4  वेब  ाउज़र से html फ़ाइल ओपन कर
           5  आउटपुट की पुि  कर ।



                                                           163

                                      CITS : IT & ITES - कं  ूटर सॉ वेयर ए ीके शन - अ ास 44
   174   175   176   177   178   179   180   181   182   183   184