Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 106 - logicode 2609 C6
P. 106

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

                                      <STYLE>, <HEAD>, #FFFFFF, Declaration, Property, BORDER-STYLE

                         a.   In CSS, a               is a combination of a property and its value written in the format property:
                             value;.
                         b.   Internal CSS is written inside the            tag in the                section.
                         c.  The                 hexadecimal code represents the white colour in CSS.
                         d.   The                CSS property is used to set the border style for all four sides of an element’s
                             border.

                         e.  Each                 has its own valid set of values.
                      3.  Write T for true and F for false.

                         a.   CSS improves performance by separating design, reducing code and speeding load times.

                         b.  In CSS, a declaration block is a set of one or more declarations enclosed in curly braces.

                         c.  Internal CSS is applied by writing styles inside a separate external file with a .css extension.

                         d.  The TEXT-ALIGN property in CSS is used to change the font size of the text.

                         e.  The MARGIN property in CSS can be used to set the margin for all four sides of an element.

                      4.  Think and answer.
                         a.  Write an advantage of CSS.
                             ____________________________________________________________________________________

                         b.  What is a declaration block in CSS?
                             ____________________________________________________________________________________
                         c.  Name the three main ways to add CSS to a web page.

                             ____________________________________________________________________________________
                         d.  Where is Internal CSS written and which elements does it affect?
                             ____________________________________________________________________________________

                         e.  Mention the use of the MARGIN property.
                             ____________________________________________________________________________________

                                                                                                      21 st
                      5.   Competency-based/Application-based questions.                           Century   #Creativity
                                                                                                     Skills  #Technology Literacy
                         a.    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?

                         b.   Shaan wants to apply uniform spacing around all the paragraphs on his web page. Which CSS
                             property should he use to achieve this?

                      104   Premium Edition-VI

| 101 102 103 104 105 106 107 108 109 110 111 |