HTML link with no underline
Thursday, June 19th, 2008Creating a HTML anchor text link with no underline is really simple.
By default, a hyperlink tag has the following structure:
<a href=”http://www.phpdebutant.com/forums”>PHP Forums</a>
When viewed in browser, it shows as:
If you want to get rid of the underline, you can specify it in the CSS style property:
<a href=”http://www.phpdebutant.com/forums” style=”text-decoration:none;”>PHP Forums</a>
When viewed in browser, it will show as:
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.