Page 78 - Trackpad_V1_Book 6_Flipbook
P. 78

DISPLAYING A WEBPAGE IN A WEB BROWSER

                  After creating and saving an HTML document, we can view it in a web browser. In this example,
                  we are using Microsoft Edge.

                  To view a webpage in a web browser: Open the folder in which you have saved the HTML document.
                  Locate the file and double-click it. The web page opens in your default web browser window.













                       PURE        On August 06, 1991, the first ever website named info.cern.ch was published by
                       FACT        Tim Berners-Lee at CERN in Switzerland.




                  Now that you know how to create an HTML document and view it in the browser, let us explore
                  some of the tags that can be used to align and style the page content in the body section.




                            <P> TAG

                  <P> tag is used to insert a paragraph in an HTML document. A paragraph begins with the <P> tag and
                  ends with the </P> tag. The browser automatically adds a vertical space before and after each <P> tag.

                  ALIGN ATTRIBUTE

                  A paragraph can be aligned using the Align attribute. Various values of the Align attribute are
                  given in the table below.




                          Value                          Description                           Example



                                                                                    <P Align = “Left”> Text goes
                    Left                  Left-aligns the text.
                                                                                    here. </P>
                                                                                    <P Align = “Right”> Text goes
                    Right                 Right-aligns the text.
                                                                                    here. </P>

                                                                                    <P Align = “Center”> Text goes
                    Center                Center-aligns the text.
                                                                                    here. </P>

                                          Stretches  the lines so that  each line  <P Align = “Justify”> Text goes
                    Justify
                                          has an equal width.                       here. </P>



                   76   Trackpad (Version 1.0)-VI
   73   74   75   76   77   78   79   80   81   82   83