Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


Java/Open Source Daily

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Using Multiple Link Colours

I would like to be able to define my links to appear in several different colors, one for each topic.

Try

<a href="blah..."><font color="RGB">link text</font></a>

where 'RGB' is either the colour name or a hexidecimal RGB value.

You may find that this is not robust, e.g. I've noticed that although Netscape displays such links correctly the first time the page is viewed, it may fall back to the regular link colour if the page is reloaded.

A better solution, if your users use the latest Netscape or Microsoft browsers, is to use style sheets.



Up to => Home / WebRef / IAQ