Page 86 - 2611_SmartGPT Pro V(5.0) C-6
P. 86

<HR> TAG


                  The <HR> tag is used to divide the webpage into different sections by drawing a horizontal line in
                  the webpage.

                  <!DOCTYPE HTML>

                  <HTML>
                  <HEAD>

                  <TITLE> HR Tag </TITLE>

                  </HEAD>
                  <BODY>

                  <p>This is the first paragraph of the tag. HTML is the standard markup
                  language for Webpages. </p>

                  <hr>

                  <p>This is the second paragraph of the tag.HTML is the standard markup
                  language for Webpages.</p>

                  <hr>

                  </BODY>
                  </HTML>



                            STYLING HTML5 DOCUMENTS WITH CASCADING STYLE SHEETS

                  CSS (Cascading Style Sheets) is a language used to describe how HTML documents should look
                  and be formatted. The latest version of CSS is CSS 3. Earlier, CSS 2 was used. CSS comprises style

                  rules that are interpreted by the web browser and then applied to the corresponding elements in
                  the HTML webpage.
                  The Cascading Style Sheet has two parts: selector and declaration.


                                         Selector             Declaration
                                            HI      { Color : Blue; Font-Size : 12px; }

                                                      Property  Value   Property     Value


                  The selector specifies the element to which we want to apply the formatting and the declaration
                  specifies the formatting to the selector.
                     The property of CSS is used to create a style.

                     Value is the valid value for the property.
                      A semicolon should be used at the end of the property-value pair, if more than one property
                    is used.



                   84   Computer Science (V5.0)-VI
   81   82   83   84   85   86   87   88   89   90   91