Page 63 - PortGPT_V2.1_C8_Flipbook
P. 63

c.   The padding property is used to add space between the border and the
                          contents of a cell.                                                                     ___
                     d.  CSS margin properties enable to create space around an HTML element, outside

                          any border.                                                                             ___
                     e.   CSS is a design language which enables to simplify the process of making web pages.
                     f.   The font family property works on the principle of ‘fallback’ system.                   ___
                     g.   An outline is a line that is drawn around elements, to make the element “stand out”.   ___

                 3.  Fill in the blanks using the words from the help box.


                                    Selector,   Padding,  text-align,  outline,  font-size,  list-style-image

                     a.     We use ____________________ to add space between the border and the contents of a cell.
                     b.  Using the ____________________ the look of the entire website can be changed by changing
                          one CSS file.

                     c.    An ____________________ is a line that is drawn around elements.
                     d.  The ____________________ property is used to align the text in desired position.

                     e.   The ____________________ property is used to set a picture or image as a list item.
                     f.   The ____________________ property is used to increase or decrease the size of a font.

                 4.  Short answer type questions.

                     a.     Write the inline CSS code to change the background color of a heading of level 1 on a webpage
                          to green.
                          ____________________________________________________________________________


                     b.   Write  the  CSS  code  to  set  the  topmargin  and  the  left  margin  of  a  paragraph  to  10  and
                          12 pixels respectively.

                          ____________________________________________________________________________

                     c.   What is the use of Font-family property?

                          ____________________________________________________________________________


                     d.  What is the use of padding property?
                          ____________________________________________________________________________


                 5.  Long answer type questions.

                     a.   Discuss the different CSS outline properties.
                     b.  Explain the CSS font properties that can be used to stylize the text.

                     c.   Explain inline style with an example.
                     d.   Write HTML code to add space between contents of cell and the border.




                                                                                              Introduction to CSS3  61
   58   59   60   61   62   63   64   65   66   67   68