Page 186 - CA_165_V2.0_Flipbook
P. 186

Recap Zone

                       'Cascading Style Sheet' is commonly referred as CSS. CSS is a simple design language which
                         enables to simplify the process of making web pages.
                       CSS style rule is made of two parts i.e. 'Selector' and 'Declaration'. 'Declaration' can be further
                         categorised into 'Property' and 'Value'.
                       There are three ways of inserting or linking a style sheet: External Style Sheet, Internal Style Sheet
                         and Inline Style.

                       The Background Color property of style sheet is used to change the background color of an
                         element.

                       The CSS border properties enables to specify the style, width and color of a border.
                       CSS 'margin' properties enables to create space around an HTML element, outside any border.
                       The height and width properties enables to set the height and width of an element. It is also
                         used to set the height and width of the area inside the border, margin, etc. of the element.

                       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 desired position.
                       The 'float' property is used for positioning and formatting content.




                  Solved Exercise


                                                               SECTION A
                                                        (Objective Type Questions)
                  A.   Multiple choice questions.

                      1.   Which tag is used to as internal style sheet in HTML?
                          i.  <STYLE>                                   ii.  <COLOR>
                          iii.  <PRE>                                   iv.  <TYPE>
                      2.  ..................................... is the HTML element to which the style is applied.

                          i.  Tag                                       ii.  Element
                          iii.  Selector                                iv.  None of these
                      3.   The full form of CSS is ..................................... .
                          i.  Cascading Style Sheets                    ii.  Cascading Spread Sheet
                          iii.  Control Spread Sheet                    iv.  Control Style Sheet

                      4.  ..................................... defines the logical structure of a web page.
                          i.  DOM                                       ii.  HTML
                          iii.  CSS                                     iv.  JavaScript
                      5.   Which property is used to change the colour of the background of an element in CSS?

                          i.  background                                ii.  background-color
                          iii.  bgcolor                                 iv.  color




                   184   Touchpad Computer Applications-X
   181   182   183   184   185   186   187   188   189   190   191