Link Attributes
Atributes are the properties that a selector (such as "p", "A:link", "body") can have. The attributes that the link selectors can have are numerous, and many of them unnecessary.
However, there are a few that are used often.
<style type="text/css"> A:link {
color:#0000FF;
text-decoration:none;
font-style:italic;
background:rgb(255,255,0);
font-weight:normal; font-family:"Times New Roman",serif;
}
</style>
The above example would produce a link that looks like this. It is a good idea to not change the font-weight,
font-style, font-family, or font-size for the A:hover selector. That can screw up the layout of your page. Another attribute is the cursor attribute. I won't cover this because it's not very reliable, and from the user point-of-view, very annoying.
|