Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

Chapter 6. Introduction to Style Sheets > Applying Styles to Hyperlinks

6.5. Applying Styles to Hyperlinks

By default in most browsers, textual hyperlinks appear as underlined blue text, and visited hyperlinks (that is, hyperlinks to pages you have already visited) appear as underlined purple text. You have probably seen Web sites where this wasn’t the case, though, and perhaps you wondered how they did it.

You can control hyperlink formatting by placing attributes in the <a> tag for each link, although it’s tedious to do so. For example, to make an individual hyperlink magenta, use the following:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint