Which of the following can be used to display black color in HTML?
2018
Which of the following can be used to display black color in HTML?
- A.
RGB(0, 0, 0)
- B.
RGB(255, 255, 255)
- C.
RGB(255, 0, 0)
- D.
RGB(0, 255, 0)
Attempted by 175 students.
Show answer & explanation
Correct answer: A
In HTML and CSS, the RGB color model defines black as having zero intensity for all three primary colors. Therefore, the value rgb(0, 0, 0) represents pure black.