HTML Links :
NO UNDERLINE








By default, text links are underlined by the browser.

If your page is visited by MSIE3 or newer, you can turn off the underlining for an entire page by adding a style tag to the head section of the document.

Look at this example:
<html>

<head>
<title>This is my page</title>
<style type="text/css">
<!--
A{text-decoration:none}
-->
</style>

</head>

<body>
Welcome to my world!<br>
<a href="http://www.yahoo.com">This Link To Yahoo has no underline</a>
</body>

</html>


Note:
The style setting will not cause an error if viewed on a browser that doesn't support it. The browser will simply skip the effect - the link will look like an ordinary underlined link - but no errors will occur.





You can create much more advanced links with Cascading Style Sheets (CSS). If you're new to CSS you can learn about it in our CSS tutorial. If you're already familiar with CSS you can learn more about it in the section about CSS links.

 << PREVIOUS
READ MORE >>  
















DEVELOPER TIP!





     "Better Than Books - As Easy As It Gets!"