Sunday, February 26, 2012

How to change the background color in html


We can easily change the background color by using the style tag . It will more easy by the example that change the background color of the web page.
  1.  At first we have to open the notepad
  2. type the code
  3. save the file in any name. e.g(color_change.html)
<html>
<body style="background-color:green">

<h1> Look: Colored Background!</h1>

</body>
</html>
The output of the page is

No comments:

Post a Comment