However, we might want one or more links to have different colors than the rest of the page.
There are two methods for doing this:
- Placing font tags between the <a href> and the </a> tag. This method will work on all browsers except Microsoft Internet Explorer 3 (MSIE 3).
- Using a style setting in the <a> tag. This method works on MSIE 3 and newer browsers.
The first technique would look like this:
color="FF00CC"> here</font></a> to go to this website.
Note:
If is important that both <font> and the </font> tags are between the <a href> and </a> tags.
The second technique would like this:
style="color : rgb(0,255,0)"> here</a> to go to this website.
Note:
The RBG numbers indicates amounts of red , green and blue using values between 0 and 255.
Now, since neither of the two methods covers all browsers, we need to use both techniques at once.
This example works on all browsers:
style="color : rgb(0,255,0)"><font color ="FF00CC"> here</font></a> to go to this website.
The last example is interesting. Not only because it will work on all the browsers. But even more because it shows a general to make the pages browser safe. Since browsers simply leave out information that is not understood, we can work around browser differences by simply adding different settings for multiple browsers.


Post a Comment
Your feedback is always valuable for us :