Page 193 - Webapplication11_C11_Flipbook
P. 193

Lab Assignment ‘n Activity                  #Experiential Learning
                                                                                              #Computational Thinking



                    Type the following code and see the output:
                    <!DOCTYPE html>

                    <html>
                    <head>
                    <title>Working with Forms</title>
                    </head>
                    <body>

                    <form>
                    <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.16 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.
                                                                                Website Building Using HTML and CSS  191
   188   189   190   191   192   193   194   195   196   197   198