Page 187 - CA_165_V2.0_Flipbook
P. 187

6.   Which of the following is a type of CSS?
                         i.  Inline                                   ii.  External
                         iii.  Internal                               iv.  All of these
                     7.   Anshu, a class X student, is writing CSS code for making all <span> elements bold.

                         Choose the correct code for getting the desired output from the following options:  [CBSE SQP 2024-25]
                         i.  span{text-size:bold}                     ii.  span {font-weight:bold}
                         iii.  <span style="font-size:bold">          iv.  <span style="text-size:bold">


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

                 B.  Fill in the blanks.
                     1.   CSS stands for ..................................... .
                     2.     A ..................................... selector looks for all the occurrences of the element type in the document, to apply
                         the mentioned properties.
                     3.   A style rule is made up of two parts: ..................................... and ..................................... .
                     4.     Using the ..................................... style sheet, the look of the entire website can be changed by modifying just
                         one CSS file.
                     5.   The inline style is given using the ..................................... attribute.

                   Ans.   1. Cascading Style sheet              2. Type               3. Selector, declaration
                         4. External                            5. Style
 Solved Exercise  C.   Assertion and Reasoning questions.


 SECTION A             The following questions consist of two statements – Assertion (A) and Reasoning (R). Answer these
 (Objective Type Questions)  questions by selecting the appropriate option given below:
 A.   Multiple choice questions.     i.   Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).

    1.   Which tag is used to as internal style sheet in HTML?     ii.   Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A).
       i.  <STYLE>    ii.  <COLOR>     iii.  Assertion (A) is true, but Reason (R) is false.
       iii.  <PRE>    iv.  <TYPE>     iv.   Assertion (A) is false, but Reason (R) is true.
 2.  ..................................... is the HTML element to which the style is applied.  1.  Assertion (A): The * (universal selector) in CSS selects all elements in the document.

       i.  Tag    ii.  Element  Reason (R): The * selector applies styles to every element on the page.
       iii.  Selector    iv.  None of these  2.  Assertion (A): A link to an external CSS file can be added in the <head> section of an HTML document
                         using the <link> tag.
    3.   The full form of CSS is ..................................... .
                         Reason (R): External stylesheets are linked using id="stylesheet" and src="path/to/stylesheet.css".
       i.  Cascading Style Sheets    ii.  Cascading Spread Sheet
       iii.  Control Spread Sheet    iv.  Control Style Sheet    Ans.    1. i.   2. iii.

 4.  ..................................... defines the logical structure of a web page.
                 D.   Source-based/Case-based/Passage-based question.
       i.  DOM    ii.  HTML
                       An outline is a line that is drawn around elements, to make the element "stand out". Outline differs from
       iii.  CSS   iv.  JavaScript
                     borders as it is drawn outside the element's border, and may overlap other content CSS has many outline
    5.   Which property is used to change the colour of the background of an element in CSS?  properties.

       i.  background   ii.  background-color     1.   Which among the following properties is used to set the width of the outline?
       iii.  bgcolor   iv.  color        i.  Outline-width            ii.  Outline offset
                         iii.  Outline                                iv.  None of these


                                                                                        Cascading Style Sheets   185
   182   183   184   185   186   187   188   189   190   191   192