Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 86 - 2629_Devagiri_C-7
P. 86

    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.

                       84
                            Premium Edition-VII

| 81 82 83 84 85 86 87 88 89 90 91 |