Page 180 - Web Applications (803) Class 11
P. 180

<H1>Employee Details</h1>
                 First name: <input name="firstName"> <br> <br>
                 Last name: <input name="lastName">   <br> <br>
                 Post :<input type="radio" name="post" value="TGT">TGT

                 <input type="radio" name="post" value="PGT">PGT <br> <br>
                 Email:<input type="email" name="email">                   <br> <br>
                 Date of Birth:<input type="text" name="birthDate"> <br> <br>
                 Address :<textarea name="address" cols="30" rows="3"></textarea>

                 <br> <br> <br> <input type="submit">
                 </form>
                 </body>
                 </html>




                 2.13 INTRODUCTION TO CASCADING STYLE SHEETS (CSS)

              CSS is a method sheet language that gives web designers control over how their
              websites connect with web browsers, including how their HTML documents are
              formatted and displayed. CSS, or cascading style sheets, is a text-based coding
              language that specifies webpage formats and how they interact with computer
              browsers.  Web  developers  can  use  the  language  to  control  numerous  style
              components and functionality, such as layout, colour, and fonts, and hence the
              formatting and presentation of HTML documents.
              The fundamental purpose of the language (as a method sheet language) was to separate document content from
              document presentation, which includes things like colour, layout, and fonts. CSS is in charge of the look and feel of a
              web page. You can use CSS to change the colour of the text, the font design, the spacing between paragraphs, the size
              and layout of columns, and more. CSS tells HTML how to display the website on the user's end. Let's have a look at the
              advantages and disadvantages of CSS.

              Advantages of CSS

              Some of the advantages of CSS are as follows:

              Ð ÐCSS saves time: CSS allows you to code once and then reuse it across various HTML pages. Each HTML element can
                 have its own style, which you can apply to as many web pages as you desire.

              Ð ÐPages load faster: You don't have to write HTML tag attributes every time you use CSS. Simply write a single CSS
                 rule for a tag and apply it to all instances of that tag. As a result, fewer lines of code mean faster download times.

              Ð ÐSimple to maintain: To make a global change, simply alter the style, and all elements across all web pages will be
                 instantly updated.
               ÐSuperior styles to HTML: CSS offers a lot larger set of attributes than HTML, therefore you may give your HTML page
              Ð
                 a far better look when compared to HTML attributes.
              Ð ÐNumerous device compatibility: Style sheets make it possible to optimise content for multiple devices. Different
                 versions of a website can be displayed for handheld devices such as PDAs and mobile phones, as well as for printing,
                 using the same HTML document.



                178     Touchpad Web Applications-XI
   175   176   177   178   179   180   181   182   183   184   185