What Is The Correct Html For Adding A Background Color https://www.skillvertex.com/blog Wed, 24 Jan 2024 07:34:04 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 https://www.skillvertex.com/blog/wp-content/uploads/2024/01/favicon.png What Is The Correct Html For Adding A Background Color https://www.skillvertex.com/blog 32 32 What Is The Correct Html For Adding A Background Color https://www.skillvertex.com/blog/what-is-the-correct-html-for-adding-a-background-color/ https://www.skillvertex.com/blog/what-is-the-correct-html-for-adding-a-background-color/#respond Wed, 24 Jan 2024 07:34:04 +0000 https://www.skillvertex.com/blog/?p=1493 Read more]]> 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

]]>
https://www.skillvertex.com/blog/what-is-the-correct-html-for-adding-a-background-color/feed/ 0