Web Designing and Publishing

CSS ( Cascading Style Sheet ) - Set 2

  1. In CSS the difference between two lines of your content is set by :
    1. min-height property
    2. line-height property
    3. max-height property
    4. none of these
    Answer : B
    Explain: line-height property is used to set the gap/differnce between two lines.
  2. In style tag, when we add # before any element means :
    1. class name
    2. an universal tag
    3. horizontal frame
    4. an id tag
    Answer : D
    Explain: When we add # before any element it shows that it is id tag. Like <div id="hello">, In CSS- we use it #hello to add some property.
  3. Following HTML tag is used to declare internal CSS :
    1. style
    2. link
    3. script
    4. body
    Answer : A
    Explain: style tag is used to declarre internal css. To link external CSS we use link tag to link it.
  4. Function that allow calculation in CSS :
    1. calc() function
    2. calculator()
    3. calculater()
    4. calcu()
    Answer : A
    Explain: calc () is used to perform calculations.
  5. The attribute used to change the background color of an element in CSS :
    1. bgcolor
    2. color-bg
    3. bg-color
    4. background - color
    Answer : D
    Explain: background-color property is used to change the color of background on a wep page.
  6. Which of the following selector is used to select elements whose attribute value ends with a specified value.
    1. [attribute="value"]
    2. [attribute$="value"]
    3. [$attribute="value"]
    4. [attribute="value^"]
    Answer : B
    Explain: [attribute$="value"] - use for whose value end with and [attribute^="value"] - use for whose value start with it.
  7. Function to insert values of a CSS variable is :
    1. var()
    2. rand()
    3. varchar()
    4. calc()
    Answer : A
    Explain: var () is used to insert variable value. It is begin with -- (double dashed).
  8. A type of combinator in CSS is :
    1. >
    2. +
    3. ~
    4. All of these
    Answer : D
    Explain: Four types of combinators of in CSS are adjacent sibling selector(+), General sibling selector(~), Child selector(>) and descendent selector(space).
  9. The type of CSS popularly used for designing pages for websites :
    1. Inline
    2. External
    3. Internal
    4. None of these
    Answer : D
    Explain: Most of user perfer to use external css.
  10. How to change the text sizes in CSS ?
    1. font-family
    2. font-size
    3. font
    4. Both (A) and (C)
    Answer : B
    Explain: font-size is used to adjust the size of text.
  11. Which of the following is the correct CSS syntax ?
    1. <h1 "color:Tomato;">...</h1>;
    2. <h1 "color:Tomato;">...</h1>
    3. <h1 style="color:Tomato;">...</h1>
    4. <h1 style="color:Tomato;">...</h1>;
    Answer :C
  12. Which of the following is used to specify the transparency of an element is in CSS :
    1. opacity
    2. filter
    3. visibility
    4. vague
    Answer : A
    Explain: Opacity is used to specify the transparency of an element.
  13. How to add shadow to text in CSS ?
    1. Content Shadow
    2. Text Shadow
    3. Word Shadow
    4. Text outline
    Answer :B
    Explain: Text shadow is used to add shadow to text in CSS.
  14. In CSS which of the following are different types of gradients :
    1. Linear
    2. conic
    3. Radial
    4. All of these
    Answer : D
    Explain: Types of gradient use in CSS -Linear,conic and Radial.
  15. The attribute used to make rounded corners around an element in CSS is :
    1. border-radius
    2. border-round
    3. border-spacing
    4. none of the above
    Answer : A
    Explain: To make round corner use border-radius.

Next Set

1 3

Make sure you make notes of these question. We hope it helps you.