About HTML page background HTML page background coloring mainly is the discussion part of HTML BODY section. By using color a web page bec...
About HTML page background
HTML page background coloring mainly is the discussion part of HTML BODY section.
By using color a web page becomes attractive and understandable to user and viewers.
bgcolor attribute is used for HTML page background coloring. We can use any color.
Coloring
bgcolor attribute is used for HTML page background coloring. We can use any color.
So, we have to write like this,
<body bgcolor = "color name / color code">
Here is an example of showing the HTML background color blue.
<DOCTYPE html!>
<html>
<head>
<title>Background color showing</title>
</head>
<body bgcolor = "blue">
Here the background color is blue.
</body>
</html>
We have to save this code in Text document. After that save the text document as Filename.html.
Next open that .html file with any browser . The output something like this.
Following this process any color can be set as background color.


No comments