Page 133 - CA 165 ver 1.0 Class 10
P. 133

5.   Write the CSS code for following:
                         i.  A paragraph aligned to the right side with left and right margin of 200 px.
                         ii.  A paragraph with font style jokerman , font size 10 px.
                         iii.  An <h1> tag with border specifications- size 8px, color-blue and style dotted.
                         iv.   Heading of level 1 should have border color blue the border-type to be double. The thickness of the
                             border to be 4px and the background color to be green.
                         v.  The Paragraph font color should be brown and the background color should be crimson.
                     Ans. i.  <P STYLE=”margin-left:200px; margin-right:200px; text-align:right”>
                         ii.  P{font-family:jokerman;font-size:10px;}
                         iii.  H1{border-width:8px; border-color:blue; border-style:dotted}
                         iv.  H1{background-colour:green;border-style:solid;border-color:blue;border-width:4px;}
                         v.  P{color:brown;background-color:crimson;}

                 C.  Application Based Questions.
                     1.   Raghav wants to change the look of an entire website by updating just one CSS file. How can he do so?
                     Ans. Web page must include a reference to the external style sheet file within a <link> element inside the
                         <HEAD> section.
                     2.   Nisha wants to individually customize all the four sides of a border to have different colours in each side.
                         What CSS property must be applied for the same?
                     Ans. Border-Color

                 Unsolved Exercise

                                                                PART A

                 A.  Very short answer type questions.
                     1.   Name the property that is used for positioning and formatting content.
                     2.   Web page must include a reference to the external style sheet file within an element inside the <HEAD>
                         section. Name this element.
                     3.   Give an example of Selector.
                     4.   What comprises of style rules that  are interpreted by the web browser  and then applied to the
                         corresponding elements in a document?
                     5.   The height and width of an element can be specified in length whose values can be in different units.
                         Name any two units.
                 B.  Case Based MCQs
                        Cascading Style Sheet’ is commonly referred as CSS. CSS is a simple design language which enables to simplify
                     the process of making web pages. It handles and describes how an HTML webpage will be presented on a web
                     browser. It helps to save lot of time as one design layout can be used to make more number of web pages.
                     Using CSS, web designer can control the text colour, font style, paragraph spacing, columns size, background
                     images, layout designs, etc.
                     1.   CSS comprises of style rules that are made up of two parts: Selector and ......................................
                         i.  Declaration                                     ii.   Property

                         iii.  Value                                         iv.  None of these
                     2.   Which of the following statements is false?
                         i.  Declaration block can contain one or more declarations separated by a semicolon.
                         ii.  Declaration can be further categorized into Property and Value.



                                                                                        Cascading Style Sheets   131
   128   129   130   131   132   133   134   135   136   137   138