How to remove underline from a link in HTML?

Paic Ten picture Paic Ten · Jun 1, 2012 · Viewed 472.3k times · Source

In my page I have put some links under which I don't want any line, so, how can I remove that using HTML?

Answer

patryk.beza picture patryk.beza · Jun 1, 2012

Inline version:

<a href="http://yoursite.com/" style="text-decoration:none">yoursite</a>

However remember that you should generally separate the content of your website (which is HTML), from the presentation (which is CSS). Therefore you should generally avoid inline styles.

See John's answer to see equivalent answer using CSS.