Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials Remove Underlines from Links
Your Ad Here

Remove Underlines from Links


<style type="text/css">
<!--
A:link {text-decoration: none}
-->
</style>

Put the above script between the <head> </head> tags in your page. It will remove all the underlines from your links in that particular page. To remove all underlines from your links throughout your website, better place it in your header file.

In addition to none, any of the following four constants can be put:

A:link {text-decoration: blink} <!-- Text blinks -->
A:link {text-decoration: line-through} <!-- Each line of text has a line through the middle. -->
A:link {text-decoration: overline} <!-- Each line of text has a line above it. -->
A:link {text-decoration: underline}<!-- Each line of text is underlined. -->

Example
Example

Usually link, visited, active and hover are alltogether defined in one script as below:

<style type="text/css">
<!--
A:link {text-decoration: none} <!-- Underlines are removed from links -->
A:visited {color: red } <!-- Visited link will become red -->
A:active {color: #CCCCCC } <!-- Active link will be light grey -->
A:hover {color: yellow } <!-- When you point on links it will turn to yellow -->
-->
</style>

Change the colors that suits your website layout.



Author's URL: Ades Tynyshov
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

HTML is Hyper Text Markup Language that is used to make hypermedia and hypertext documents for the Web. More HTML and CSS: Most Popular Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

Add comments to "Remove Underlines from Links"

Only registered users can write comment

Reader's comments