Creating a link without an underline in HTML.

Issue

Creating a link without an underline in HTML.

Solution

All browsers that support style's will allow users to remove all underlines on their page by entering the below code within the <head></head> tags your HTML.

<style href>a {text-decoration: none} </style>

If you just want one link not underlined on your page creating a link similar to the below code anywhere within the <body></body> tags will make the link not have an underline.

<p><a href="http://www.computerhope.com" style="text-decoration: none">Computer Hope</a></p>

Example

Computer Hope

  • Category
  • HTML Q&A
  • Related pages
  • HTML Help
  • Solved?
  • Were you able to locate the answer to your question?