In this lesson ,I’ll show you how to display colors in the background of your web page as well as text color.
Type or copy paste the below program in the notepad and save it with the “.html” extension.
Under the body tag, you can choose the color what you wanna choose,for example you can choose Red or Green instead of lightblue color under body tag and you can also choose any color for the contents of the web page.
<body bgcolor="lightblue" text="green">
Program:
<html>
<head>
<title>Learning a Color Web Page</title>
</head>
<body bgcolor="lightblue" text="green">
This is my color web page
</body>
</html>
No comments:
Post a Comment