What Is The Correct Html For Adding A Background Color

a.<body color = “green”>

b.<body bgcolor = “green”>

c.<background> green </background>

d.<body bg = “green”>​

What Is The Correct Html For Adding A Background Color

Answer.

The correct HTML syntax for setting the background color of the <body> element to green is option (b):

<body bgcolor="green">

So, the correct choice is (b).

Hridhya Manoj

Hello, I’m Hridhya Manoj. I’m passionate about technology and its ever-evolving landscape. With a deep love for writing and a curious mind, I enjoy translating complex concepts into understandable, engaging content. Let’s explore the world of tech together

Leave a Comment