Page 188 - CA_165_V2.0_Flipbook
P. 188

2.   Which of the following values can the 'outline-style' property have?
                          i.  Dotted                                    ii.  Groove
                          iii.  Ridge                                   iv.  All of these
                      3.     Which of the following properties is used to add space between the outline and the edge/border of an
                          element?
                          i.  Outline-color                             ii.  Outline-offset
                          iii.  Outline-style                           iv.  Outline-width
                      4.   Which of the following properties are set by the 'outline' property in a single statement?
                          i.  Outline width and Outline style
                          ii.  Outline color and Outline offset
                          iii.  Outline width, Outline style and Outline offset
                          iv.  Outline width, Outline style, Outline color and Outline offset
                      5.  The ..................................... property is used to set the style of line for the outline.
                          i.  Outline                                   ii.  Outline-width
                          iii.  Outline-style                           iv.  Select

                    Ans.   1. i.     2. iv.    3. ii.   4. iv.    5. iii.

                                                               SECTION B
                                                       (Subjective Type Questions)

                  A.   Short answer type questions.
                      1.     Write the inline CSS code to change the background color of a heading of level 1 on a webpage to green.
                    Ans.   <H1 STYLE=”BACKGROUND-COLOR:GREEN;”>Heading</H1>
                      2.     Write the CSS code to set the top margin and the left margin of a paragraph to 10 and 12 pixels respectively.
                    Ans.   <HTML>
                          <HEAD>
                          <TITLE>BUSINESS AND TECHNOLOGY</TITLE>
                          </HEAD>
                          <BODY>
                          <P STYLE="MARGIN-TOP:10PX;MARGIN-LEFT:12PX;>
                          With the introduction of computers, the business world was changed forever.
                           Using computers and software, businesses use information technology to ensure
                           that their departments run smoothly.
                          </P>
                          </BODY>
                          </HTML>
                      3.   What is the effect of using the CSS float property on an image?
                    Ans.   The 'float' property is used for positioning and formatting content. The float property can be set with
                           values such as left, right, none, etc. The text around the image wraps around using the float property.
                      4.   What is an External style sheet?
                    Ans.   'External Style Sheet' is a CSS file that can be link with the help of <link> element inside the <HEAD>
                           section.  Style of an entire website can be changed by updating that CSS file.
                      5.   Differentiate between Inline and Internal style sheet.
                    Ans.   CSS design can also be applied into an HTML document by using <STYLE> tag. This tag should be placed
                           inside the <HEAD>...</HEAD> tags. An internal style sheet is commonly used when one web page has a
                           unique style. Whereas, an inline style is used to apply a unique style for a single element.

                   186   Touchpad Computer Applications-X
   183   184   185   186   187   188   189   190   191   192   193