Copyright © tutorialspoint.com
background-color sets a solid color for the entire background, including the padding and border background, of an element.
All the HTML elements.
object.style.backgroundColor="Any value as defined above"; |
<p style="background-color:yellow;"> This text has a yellow background color. </p> |
This will produce following result:
This text has a yellow background color. |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com