Commerce

Basic Css MCQs

Practice Basic Css MCQs for competitive exams.

Basic Css MCQs

Practice questions from this topic.

Which of the following defines 1% of viewport height?

  1. A. px
  2. B. vh
  3. C. vw
  4. D. vmin
Report Error

Which of the following defines a measurement as a percentage relative to another value, typically an enclosing element?

  1. A. %
  2. B. cm
  3. C. em
  4. D. ex
Report Error

Which of the following selector selects all paragraph elements with a lang attribute?

  1. A. p[lang]
  2. B. p[lang="fr"]
  3. C. p[lang~="fr"]
  4. D. p[lang|="fr"]
Report Error

Which of the following selector matches a particular element only when it lies inside a particular element?

  1. A. The Type Selector
  2. B. The Universal Selector
  3. C. The Descendant Selector
  4. D. The Class Selector
Report Error

Which of the following selector matches all elements of a type?

  1. A. The Type Selector
  2. B. The Universal Selector
  3. C. The Descendant Selector
  4. D. The Class Selector
Report Error

Which of the following is a component of CSS style rule?

  1. A. Selector
  2. B. Property
  3. C. Value
  4. D. All of the above
Report Error

Which of the following is correct about CSS?

  1. A. CSS is used to control the style of a web document in a simple and easy way.
  2. B. CSS is the acronym for "Cascading Style Sheet".
  3. C. You can write CSS once and then reuse same sheet in multiple HTML pages
  4. D. All of the above
Report Error

Which of the following color has this value #ff0000?

  1. A. blue
  2. B. green
  3. C. red
  4. D. yellow
Report Error

Which of the following attribute specifies the URL of the linked resource?

  1. A. src
  2. B. link
  3. C. rel
  4. D. href
Report Error

Which of the following Protocol enables a hyperlink to access a file on the local file system?

  1. A. https
  2. B. ftp
  3. C. file
  4. D. telnet
Report Error

Which of the following is not a attribute of the audio element?

  1. A. controls
  2. B. src
  3. C. check
  4. D. loop
Report Error

Which of the following Color Format can also be defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them?

  1. A. RGB Color
  2. B. RGBa Color
  3. C. HSL Color
  4. D. HSLa Color
Report Error