Body tag attributes:
1.     Bgcolor: This attributes specified the background color to displayed for a html document.
2.     Text : This attributes specified the color of the text to be displayed on the html document. Color can be specified (on the html document) for two formats.
a.     Specified the color have directly.
b.     We can specify the color by combining Red, Green and Blue. The format should be #rrggbb. The color combination is 6 digit Hexadecimal numbers. 
3.     Background: This attribute specify an image as the background to the html document.
<body bgcolor = “#ffffoo” text = “#ffoooo”>
                        Good Afternoon
</body>

Note: Specifying the attributes is optional, we can specify any number of attributes and they can specified in any order.

0 comments:

Post a Comment