Basic Css(Css ) Questions and Answers

Question 1. What is css stands for
  1.    Color Style Sheets
  2.    Cascade Sheets Style
  3.    Cascade Style Sheet
  4.    Cascading Style Sheets
Explanation:-
Answer: Option D. -> Cascading Style Sheets
CSS stands for Cascading Style Sheets.

Question 2. In css what does h1 can be called as
  1.    Selector
  2.    Attribute
  3.    Value
  4.    Tag
Explanation:-
Answer: Option A. -> Selector

Question 3. Which of the following attributes is used to specify elements to bind style rules to?
  1.    id
  2.    class
  3.    tag
  4.    all of the mentioned
Explanation:-
Answer: Option D. -> all of the mentioned

Question 4. In css what does “color:red” can be called as
  1.    Selector
  2.    Rule
  3.    Declaration
  4.    None of the above
Explanation:-
Answer: Option C. -> Declaration

Question 5. ________ selectors, which are used to specify a rule to bind to a particular unique element
  1.    id
  2.    class
  3.    tag
  4.    both (B) and (C)
Explanation:-
Answer: Option A. -> id

Question 6. Which of the following Protocol enables a hyperlink to access a file on the local file system?
  1.    https
  2.    ftp
  3.    file
  4.    telnet
Explanation:-
Answer: Option C. -> file

Question 7. Which of the following is a component of CSS style rule?
  1.    Selector
  2.    Property
  3.    Value
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above

Question 8. Which of the following is correct about CSS?
  1.    CSS is used to control the style of a web document in a simple and easy way.
  2.    CSS is the acronym for "Cascading Style Sheet".
  3.    You can write CSS once and then reuse same sheet in multiple HTML pages
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above

Question 9. Which of the following attribute specifies the URL of the linked resource?
  1.    src
  2.    link
  3.    rel
  4.    href
Explanation:-
Answer: Option D. -> href
href attribute specifies the URL of the linked resource. A URL might be absolute or relative.

Question 10. Which of the following color has this value #ff0000?
  1.    blue
  2.    green
  3.    red
  4.    yellow
Explanation:-
Answer: Option C. -> red