• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Color and Background Controls > Setting a Foreground Color

Setting a Foreground Color

By using the color property, you can set the color appearance for an element (Code 6.4). Although this property is primarily used to color text, Internet Explorer and Netscape 6 allow you to use color for horizontal rules and form elements as well (Figure 6.7).

Code 6.4. The <h2> tag is defined to display its text in red.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint