Yes, like so:
Code:
<html>
<head>
<style>
a{
color:#333;
}
#external{
text-decoration:none;
}
</style>
</head>
<body>
Content...
<a href="page.html">Normal</a> <!-- This link will be underlined as usual -->
<a href="http://www.google.com" id="external">Google</a>
</body>
</html>
This will make all links a certain colour, but the element with the "external" id will be the only one that is not underlined.
You could also get multiple elements to not be underlined by using classes:
Code:
<head>
<style>
.links a{
text-decoration:none;
}
</style>
</head>
<body>
<div class="links">
<a href="bla.html">Bla</a>
</div>
Content...
<ul class="links">
<a href="link.html">Random</a>
</ul>
</body>
This will make any elements with the <a> tag inside any elements with the class "links" to not be underlined. You could be more specific and add:
Code:
<style>
div.links a{
text-decoration:none;
}
</style>
Which will make only elements inside a div and that have the class "links" to not be underlined.
Bookmarks