O'Reilly logo

Cascading Style Sheets (CSS) by Example by Steve Callihan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling the Appearance of Links

One of the most ubiquitous of inline elements is the hypertext link. If you change the color, font sizes, font families, and other characteristics, you'll also want to control the appearance of links within your document, so they're coordinated with the rest of your text.

In HTML, hypertext links are created using the A (or Anchor) tag. Following the “Travel Resources” heading, you can find a list of example hypertext links (and descriptive text), as shown here (see Figure 8.18):

 <h2>Travel Resources</h2> <p>Here are some travel resources that are available online: <ul> <li><a href="http://travel.state.gov/travel.cfm">Travel and Living Abroad</a> from the Bureau of Consular Affairs, U.S. Department of State. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required