HTML link with no underline

Creating a HTML anchor text link with no underline is really simple.

By default, a hyperlink tag has the following structure:

<a href=””>PHP Forums</a>

When viewed in browser, it shows as:

PHP Forums

If you want to get rid of the underline, you can specify it in the CSS style property:

<a href=”” style=”text-decoration:none;”>PHP Forums</a>

When viewed in browser, it will show as:

PHP Forums

Subsequently, if there is a CSS stylesheet that forces all anchor tags to be displayed without an underline, you can use style=”text-decoration:underline;” to turn it back on.

Comments are closed.