Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 99 - logicode 2609 C6
P. 99

    <H1>Importance of Recycling</H1>

                     <P>Recycling helps conserve natural resources, save energy and reduce
                     pollution. It is essential for a sustainable future. </P>

                     </BODY>

                     </HTML>
                     You can use 6-digit hex codes for colours, e.g., #000000 for black and #FFFFFF for white.

                     In CSS, the priority order is: inline > internal > external. This means that if you specify inline, internal
                     and external CSS for an element, the inline CSS will be applied first, followed by internal CSS and
                     then external CSS.

                          Tick ( ) if you know this.
                             SS eliminates the need to repeat code in every HTML tag.

                             A combination of a property and its value is called a Declaration.

                               BACKGROUND PROPERTIES

                     CSS background properties style and control element backgrounds. The table shows properties,
                     values and descriptions:

                             Property Name                       Value                            Description

                                                    Any valid colour value (name,  This property sets the background
                      BACKGROUND-COLOR
                                                    HEX, RGB, HSL, etc.)              colour of an element.

                                                    URL of image                      This property  sets  an image  as
                      BACKGROUND-IMAGE
                                                                                      the background of an element.
                                                    REPEAT, NO-REPEAT,                This    property      determines
                      BACKGROUND-REPEAT             REPEAT-X, REPEAT-Y                how background  images  are
                                                                                      repeated.

                                                    LEFT, RIGHT, TOP, BOTTOM,         This property sets the position of
                      BACKGROUND-POSITION
                                                    CENTER or COORDINATES             the background image.
                                                    CONTAIN, COVER, AUTO,             This property  specifies  the size
                      BACKGROUND-SIZE               HEIGHT/WIDTH in PX or %           of the  background  within  an
                                                                                      element.

                                                                                                   CSS3–Styling Basics  97

| 94 95 96 97 98 99 100 101 102 103 104 |