Manna Manna - 1 year ago 75
CSS Question

How do I add different colors to each word in a hyperlink in HTML?

The exact question was : Write an HTML program which includes a single hyperlink containing three words with each word displayed in a different color. Eg: "JavaScript WebProgramming CSS" (JavaScript in green, WebProgramming in red, CSS in yellow).

Answer Source

It is as easy as this!

<a href=""><x style="color:green">JavaScript</x> <x style="color:red">WebProgramming</x> <x style="color:yellow">CSS</x></a>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download