Style apply only tag with href

by MariGaneshEdit ] 2014-07-15 14:21:14

Style apply only <a> tag with href

                   Here is the style code for  <a> tag with href and <a> tag without href.

For Examble

      
<style>
    a:link
    {
        text-decoration: underline;
        color:green;
        font-weight: bold;
    }
    a
    {
        color:red;
        font-weight: bold;
    }
</style>
<a>test1</a><br><br>
<a href="test.php">test2</a><br>

Output

 

Tagged in:

382
like
0
dislike
0
mail
flag

You must LOGIN to add comments