<CSS HTML Tutorial.com>

CSS HTML Tutorial
HTML Tutorials
CSS Tutorials
Free Web Tools for your Websites

Add these free tools to your website
Backlink Checker
Free Hit Counter
Website Speed Test
Google Page Rank Button
Google Page Rank Checker
Google Page Rank Check at multiple datacenters
Search Engine Position Tool
Source Code Viewer
affiliates and sponsors








Partner Sites
free adware removal tools
free css editor reviews
html editor reviews

free php editor reviews
HTML Music Video Codes
Free CSS Templates Tutorials
Photoshop Tutorials
Free Web Hosting
Good Flash Tutorials
Photoshop Tutorials
Today Tutorials
PHP Tutorials
Free photoshop tutorials
Web Design Tutorials
TutorialArea
FreeGFX
All Tutorials
Web Design Tutorials
Webmaster Articles
Free Webmaster Tools
Development Tutorials
Web Hosting Directory

CSS Tutorial

CSS Link Tutorial

Learn How To Add Styles to Links

The following CSS code examples shows you how to add styles to links with CSS.

<html>
<head>
<style type="text/css">
a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ff0000}

a.two:link {color: #ff0000}
a.two:visited {color: #0000ff}
a.two:hover {font-size: 150%}

a.three:link {color: #ff0000}
a.three:visited {color: #0000ff}
a.three:hover {background: #00ff00}

a.four:link {color: #ff0000}
a.four:visited {color: #0000ff}
a.four:hover {font-family: monospace}

a.five:link {color: #ff0000; text-decoration: none}
a.five:visited {color: #0000ff; text-decoration: none}
a.five:hover {text-decoration: underline}
</style>
</head>

<body>

<p>
<a class="one" href="csshtmltutorial-csslinktutorial.php" target="_blank">This link changes color</a>
</p>
<p>
<a class="two" href="csshtmltutorial-csslinktutorial.php" target="_blank">This link changes font-size</a>
</p>
<p>
<a class="three" href="csshtmltutorial-csslinktutorial.php" target="_blank">This link changes background-color</a>
</p>
<p>
<a class="four" href="csshtmltutorial-csslinktutorial.php" target="_blank">This link changes font-family</a>
</p>
<p>
<a class="five" href="csshtmltutorial-csslinktutorial.php" target="_blank">This link changes text-decoration</a>
</p>
</body>
</html>

The above CSS code examples produce the following CSS link examples.

This link changes color

This link changes font-size

This link changes background-color

This link changes font-family

This link changes text-decoration

Try it yourself.