Program 2
Program 2
<BODY bgcolor=”colorname”>
For example: <BODY bgcolor=”green”> or <BODY bgcolor=”blue”>
HTML provides various styles and attributes to make changes to the documents as
per the user’s needs. Following is an HTML code that shows the use
of bgcolor attribute:
<html >
<head>
<title>Document</title>
</head>
<body bgcolor="lightgreen" >
<h1>Hello reader my name is sachin Welcome to GeekforGeeks</h1>
</body>
</html>