Page 47 - modular_v2.0_HTML&_CSS_Fb
P. 47

</BODY>
                 </HTML>

















                                                            Wrapping image

                    Recap


                          CSS is a simple design language which simplifies the process of designing web pages.
                         The Background Color property  of CSS  is  used to change  the background  colour of an
                         element.
                         CSS margin properties create space around an HTML element, outside any border.
                         An outline is a line that is drawn around elements, to make the element "stand out".

                         CSS font property is used to define the font, size and the style of the text.
                         The text-align property is used to align the text in Left, Right, Center and Justify position.




                                                        Exercise




                 A.   Tick ( ) the correct option.

                      1.  A/An .......................... style is used to apply a unique style to a single element.
                          a.   Inline                                      c.   External

                          b.   Class                                       d.   Internal
                      2.  Where do you place the <STYLE> tag in a HTML program?

                          a.   <TITLE>                                     c.   <STYLE>
                          b.   <HEAD>                                      d.   None of these

                      3.  Which of the following is a correct syntax of Type Selector?

                          a.   H1{COLOR:BLUE}                              c.   {COLOR:BLUE}
                          b.   COLOR{ H1:BLUE}                             d.   BLUE{ H1:COLOR}

                      4.  Which property is used to change the text size?

                          a.   style                                       c.   size
                          b.   face                                        d.   None of these

                                                                                                                45
                                                                                        Cascading Style Sheets
   42   43   44   45   46   47   48   49   50   51   52