CommerceBasic Css MCQs
Practice Basic Css MCQs for competitive exams.
Basic Css MCQs
Practice questions from this topic.
Which of the following unit represent the viewport’s width?
- A. vh
- B. vmin
- C. vw
- D. ch
Correct Answer: C
Which of the following is not an Absolute Unit?
- A. px
- B. em
- C. pt
- D. mm
Correct Answer: B
What does HSL stands for?
- A. Hue Specified Lightness
- B. Hue Spot Lightness
- C. Hue Saturation Lightness
- D. None of the mentioned
Correct Answer: C
Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?
- A. :first-letter
- B. :last-child
- C. :first-line
- D. ::first-line
Correct Answer: D
Which of the following Selector selects an element if it’s the only child of its parent with its type?
- A. @media
- B. :target
- C. ::selection
- D. :only-of-type
Correct Answer: D
Which of the following Color Format is a CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?
- A. RGB Color
- B. RGBa Color
- C. HSL Color
- D. HSLa Color
Correct Answer: D
Which of the following Color Format is a CSS colors 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
Which of the following Color Format are a 17 defined colors under CSS 2.1?
- A. HSLa Color
- B. Commonly defined named colors
- C. System Color Names
- D. Specificationdefined named colors
Correct Answer: D
Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use?
- A. HSLa Color
- B. Commonly defined named colors
- C. System Color Names
- D. Specificationdefined named colors
Correct Answer: C
Which of the following Color Format is a CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML?
- A. 6-Hex Color
- B. 3-Hex Color
- C. RGBS
- D. RGBa
Correct Answer: A
Which of the following CSS3 Color Feature like RGB color but adds an alpha channel value to specify the opacity of the color?
- A. RGB
- B. RGBa
- C. RGBaplha
- D. AlphaRGB
Correct Answer: B
Which of the following CSS3 Color Feature can be used as a macro for whatever the current color is?
- A. CurrentColor keyword
- B. HSLa Color
- C. HSL Color
- D. RGB Color
Correct Answer: A