1. Computing

Discuss in my forum

How To Remove the Underlines From Links

By , About.com Guide

Use Cascading Style Sheets (CSS) to turn off the underlines on links.
Difficulty: Easy
Time Required: 2 minutes

Here's How:

  1. Write your link:
    <a href=""
  2. Add the style tag:
    <style="
  3. Set the text-decoration to none:
    text-decoration : none;
  4. Close the style tag and the anchor:
    ">
  5. Write the link text and close the link:
    </a>
  6. Your final link should look like this:
    <a href="" style="text-decoration:none;">this link has no underline</a>

Tips:

  1. Remember that anchors that are not underlined are hard for people to use. They don't always realize that the text is a link, even if their mouse changes or the color changes.

What You Need

  • HTML Editor -or-
  • Text Editor

©2013 About.com. All rights reserved.