Page 79 - Trackpad_V5_Book 6
P. 79

uiz    Bee       What is an empty tag? Write an example of empty tag.
                                     _________________________________________________________________







                      <HR> TAG


            The <HR> tag is used to divide the webpage into different sections by drawing a horizontal line in
            the webpage. The thickness of the horizontal line is specified through the Size attribute and the
            length is specified through the Width attribute in pixels or as a percentage. The Color attribute is
            used to set the colour of the rule. The Noshade attribute makes the line appear flat grey, giving a
            2D effect to the rule.

            <!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 Web pages. </p>
            <hr Size="10" width="80%" >
            <p>This is the second paragraph of the tag.HTML is the standard markup
            language for Web pages.</p>
            <hr Size="10" width="80%" color="grey">
            <hr Size="10" width="80%" color="Red">
            </BODY>
            </HTML>




                      STYLING HTML5 DOCUMENTS WITH CASCADING STYLE SHEETS

            Cascading Style Sheets or (CSS) are used to define styles for webpages. 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 web page.


            SYNTAX OF CASCADING STYLE SHEET

            The Cascading Style Sheet has two parts: selector and declaration.
                                   Selector             Declaration
                                      HI      { Color : Blue; Font-Size : 12 px; }

                                                Property  Value   Property     Value



                                                                                       Learn HTML5 and CSS3  77
   74   75   76   77   78   79   80   81   82   83   84