Page 126 - CodePilot V5.0 C6
P. 126

C.  Fill in the blanks using the given hints:
                     1.   In CSS, a               is a combination of a property and its value written in    Hints
                         the format property: value;.                                                       <STYLE>
                     2.   Internal  CSS  is written inside  the            tag  in the                       <HEAD>
                                                                                                             #FFFFFF
                         section.
                                                                                                           Declaration
                     3.  The                 hexadecimal code represents the white colour in CSS.
                                                                                                            Property
                     4.   The                CSS property is used to set the border style for all four sides   BORDER-
                         of an element’s border.                                                             STYLE
                     5.  Each                 has its own valid set of values.

                  D.  Answer the following questions:
                     1.  Write an advantage of CSS.



                     2.  What is a declaration block in CSS?


                     3.  Name the three main ways to add CSS to a web page.



                     4.  Explain the BORDER-WIDTH property in CSS and explain its use.



                     5.  Mention the use of the MARGIN property.




                                                                                                 21 st
                  COMPETENCY-BASED QUESTIONS                                                    Century   #Creativity
                                                                                                 Skills  #Technology Literacy
                  1.  Samantha wants to make the text in her web page italicised using CSS. She uses the code
                     p {font-style: italicize;} but it doesn’t work. What is wrong with the syntax and how can
                     she correct it?
                  2.  Shaan wants to  apply  uniform spacing  around all  the paragraphs on his web page.
                     Which CSS property should he use to achieve this?




                               LAB LEARNING                                              21 st
                                                                                        Century   #Creativity
                                                                                        Skills  #Technology Literacy
                         Create a web page titled “Healthy Eating Habits” using a heading and a paragraph.
                         (a)  Set a background image and adjust it to fit the page.

                         (b)  Give the heading a medium purple background.
                         (c)  Change the paragraph font to Verdana, size 4 and colour to dark green.
                         (d)  Add some spacing around the heading and paragraph using margin or padding.
                         (e)  Save the page and open it in a browser to see your changes.







                   124
                        CodePilot (V5.0)-VI
   121   122   123   124   125   126   127   128   129   130   131