Q. Which of the following CSS property is used to set the background image of an element?

  • (A) background-attachment
  • (B) background-image
  • (C) background-color
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) background-image

Q. Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?

  • (A) p {background-color : yellow;}
  • (B) p {background-color : #yellow;}
  • (C) all {background-color : yellow;}
  • (D) all p {background-color : #yellow;}
πŸ’¬ Discuss
βœ… Correct Answer: (A) p {background-color : yellow;}

Q. Which of the following is the correct syntax to display the hyperlinks without any underline?

  • (A) a {text-decoration : underline;
  • (B) a {decoration : no-underline;}
  • (C) a {text-decoration : none;}
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) a {text-decoration : none;}

Q. Which of the following property is used as the shorthand property for the padding properties?

  • (A) padding-left
  • (B) padding-right
  • (C) padding
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) padding

Q. The CSS property used to make the text bold is -

  • (A) font-weight : bold
  • (B) weight: bold
  • (C) font: bold
  • (D) style: bold
πŸ’¬ Discuss
βœ… Correct Answer: (A) font-weight : bold

Q. Are the negative values allowed in padding property?

  • (A) Yes
  • (B) No
  • (C) Can't say
  • (D) May be
πŸ’¬ Discuss
βœ… Correct Answer: (B) No

Q. Which of the following property is used as the shorthand property of margin properties?

  • (A) margin-left
  • (B) margin-right
  • (C) margin
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) margin

Q. The CSS property used to specify the transparency of an element is -

  • (A) opacity
  • (B) filter
  • (C) visibility
  • (D) overlay
πŸ’¬ Discuss
βœ… Correct Answer: (A) opacity

Q. Which of the following is used to specify the subscript of text using CSS?

  • (A) vertical-align: sub
  • (B) vertical-align: super
  • (C) vertical-align: subscript
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) vertical-align: sub

Q. Which of the following CSS property is used to specify the space between every letter inside an element?

  • (A) alpha-spacing
  • (B) character-spacing
  • (C) letter-spacing
  • (D) alphabet-spacing
πŸ’¬ Discuss
βœ… Correct Answer: (C) letter-spacing