Page 95 - iPlus_Ver_2.0_class_6
P. 95

The <CENTER> Tag

                 In the previous sections, we used the ALIGN attribute to align the text to the center. HTML also
                 provides the <CENTER> tag which allows us to align the text in the center. The <CENTER> does
                 not have any attribute.

                 We can use the <CENTER> tag in the following way:
                                    <center> text to be align in center </center>


                  i +  DESIGNING A WEB PAGE

                 You have now learnt some of the basic HTML tags. Let us now create the next web page by using
                 some of these tags.
                 Type  the  following  HTML  code  in  the  Notepad  window  and  save  the  file  with  the  name
                 Environment.html:

                   <html> <head>

                   <title> Note on Environment </title>

                   </head>

                   <body bgcolor="yellow">

                    <font face="Ebrima" size="6" color="red">

                   <u> <b><p align="center">Web Page on Environment </p></b></u>
                   </font>

                   <h2> Environment </h2>

                    <font face="ms sans serif" color="black">

                    <b> Environment</b>  is everything  that is <i>around us</i>. It can
                    be living (<u>biotic</u>)  or non-living  (<u>abiotic</u>)  things. It

                    includes physical, chemical and other natural forces. <br>Living things
                    live in their environment. They constantly interact with it and adapt
                    themselves to conditions in their environment. </font>

                   <hr>

                   <h5 align="right"> This web page has been created by </h5>

                   <p align="right"> <b> (enter your name here) </b> </p>

                   </body> </html>
                 Locate your file in Windows Explorer and double-click on the file icon.










                                                                                                                  93
                                                                                        HTML—An Introduction
   90   91   92   93   94   95   96   97   98   99   100