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?

Answer: A. RGB(0, 0, 0)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…

  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 662 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: Rssb Basic Computer Instructor

Loading lesson…