Go Back   Wiki NewForum > Career Forum (Documents/Tutorials/Advice) > Tech Forum & Tutorial > HTML Forum & Tutorial

HTML Forum & Tutorial End-To-End Process HTML / XHTML / CSS

Reply
Views: 437 Source: CNN18.com, India-Forums, TellyChakkar, India, Times of India, Youtube, BollywoodLife, Rediff  
Thread Tools Rate Thread Display Modes
  #1  
Old 08-09-2010, 12:18 PM
bholas bholas is offline
Award Winner
 
Join Date:
Apr 2010
Posts: 5,181
Default How to create text links in multiple colors

Would you like to use multiple colors for your text links, rather than using a single link color for the whole page?
You can specify the color of links for the whole page using LINK and VLINK attributes inside the starting BODY tag as follows:



This link will be yellow.



Listing #1 : HTML code. Download bodyclr.html (0.21 KB).


But, how can you have one link colored in red, another in green and so forth? You may notice how the following method does not work:


Internet








Windows








Programming


Listing #2 : HTML code. Download linkclr1.html (0.25 KB).


Result: Internet
Windows
Programming
Now let's try taking above tags and moving FONT tags inside A tags (anchor or link) as follows:


Internet








Windows








Programming


Listing #3 : HTML code. Download linkclr2.html (0.25 KB).


Result: Internet
Windows
Programming

Ads
Reply With Quote
Reply

Tags
website tips

New topics in HTML Forum & Tutorial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
asp web stats