CommerceBasic 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?
- A. px
- B. vh
- C. vw
- D. vmin
Correct Answer: B
Which of the following defines a measurement as a percentage relative to another value, typically an enclosing element?
- A. %
- B. cm
- C. em
- D. ex
Correct Answer: A
Which of the following selector selects all paragraph elements with a lang attribute?
- A. p[lang]
- B. p[lang="fr"]
- C. p[lang~="fr"]
- D. p[lang|="fr"]
Correct Answer: A
Which of the following selector matches a particular element only when it lies inside a particular element?
- A. The Type Selector
- B. The Universal Selector
- C. The Descendant Selector
- D. The Class Selector
Correct Answer: C
Which of the following selector matches all elements of a type?
- A. The Type Selector
- B. The Universal Selector
- C. The Descendant Selector
- D. The Class Selector
Correct Answer: A
Which of the following is a component of CSS style rule?
- A. Selector
- B. Property
- C. Value
- D. All of the above
Correct Answer: D
Which of the following is correct about CSS?
- A. CSS is used to control the style of a web document in a simple and easy way.
- B. CSS is the acronym for "Cascading Style Sheet".
- C. You can write CSS once and then reuse same sheet in multiple HTML pages
- D. All of the above
Correct Answer: D
Which of the following color has this value #ff0000?
- A. blue
- B. green
- C. red
- D. yellow
Correct Answer: C
Which of the following attribute specifies the URL of the linked resource?
- A. src
- B. link
- C. rel
- D. href
Correct Answer: D
Which of the following Protocol enables a hyperlink to access a file on the local file system?
- A. https
- B. ftp
- C. file
- D. telnet
Correct Answer: C
Which of the following is not a attribute of the audio element?
- A. controls
- B. src
- C. check
- D. loop
Correct Answer: C
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?
- A. RGB Color
- B. RGBa Color
- C. HSL Color
- D. HSLa Color
Correct Answer: A