What is the use of background color property in HTML?

 Posted by vishalneeraj-24503 on 5/6/2014 | Category: ASP.NET Interview questions | Views: 1067 | Points: 40

The background-color is an in-built style property and is used for setting the back color or background color of any controls.The background of a controls is the total size of the controls,including padding and border.

For Example:-

<asp:Button ID="btn1" runat="server" Text="Click Me" style="background-color:palegreen;"/>
<div style="background-color:yellow;"></div>
<p style="background-color:blue;">Dot net Funda</p>

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response