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?

  1. A.

    RGB(0, 0, 0)

  2. B.

    RGB(255, 255, 255)

  3. C.

    RGB(255, 0, 0)

  4. 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs