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. ...

Get Cascading Style Sheets (CSS) by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.