Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 121 - 2612 Digimind C6
P. 121

    <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                                CSS is like the colour and texture
                                                                                    of a flower or leaf, which enhances
                     language for Webpages. </p>
                                                                                         the plant's visual appeal.
                     <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. Some of the features of CSS3 are as follows:
                       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.

                                                                                                Learn HTML5 and CSS3  119

| 116 117 118 119 120 121 122 123 124 125 126 |