KnowledgeBoat Logo
LoginJOIN NOW

Computer Applications

What is the correct HTML for adding a background color ?

  1. <body background="yellow">
  2. <background>yellow</background>
  3. <body style="background-coloris:white">
  4. <body bgcolor="white">

HTML Intro

4 Likes

Answer

<body bgcolor="white">

Reason — bgcolor attribute of <BODY> tag sets the background colour of the HTML document.

Answered By

1 Like


Related Questions