🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

सीएसएस का उपयोग करके सफेद रंग निर्दिष्ट करने के लिए निम्नलिखित में से कौन सा तरीका मान्य है?

Which of the following ways are valid to specify white color using CSS ?

I. #FFFFFF
II. rgb (255, 255, 255)
III. rgb (FF, FF, FF)

A)
B)
C)
D)

Explanation:

Let's analyze the ways to specify white color in CSS:

  1. #FFFFFF:

    • This is the hexadecimal representation of white color, and it's valid in CSS.
  2. rgb(255, 255, 255):

    • This is the RGB representation of white, and it's valid in CSS. RGB stands for Red, Green, Blue, and (255, 255, 255) corresponds to the maximum values for all three, which creates white.
  3. rgb(FF, FF, FF):

    • This is not valid. In RGB, each value must be a number between 0 and 255, not hexadecimal characters like FF.

So, the correct answer is:

(D) Both I and II.

Latest Updates