Skip to content
Sign upLog in
← Back to Community

Change the color of link

Profile icon
MakaylaWatkins

Hi I was wondering if it would be possible to change the color of a link in repl (The ones that link to the other HTML pages)

Answered by Baconman321 [earned 5 cycles]
View Answer
Voters
Profile icon
AlessiaCastello
Profile icon
Baconman321
Profile icon
MakaylaWatkins
Comments
hotnewtop
Profile icon
Baconman321

Read this. Basically, you can either style a link like so:

a{ color:exampleColor; }

(Like everyone else has said), or style it using the selectors mentioned in the article I linked. If you need one color, you can use the code I provided above (change the exampleColor to an actual color of your choice). If you need more options, like change the color when a user clicks a link, then go with what the article explains.

Profile icon
SeamusDonahue

this man is right, this is going to be the solution to your problem, just put that in style.css and make sure your stylesheet is linked and this mans solution will work
if this helped please mark his answer and not mine.

Profile icon
Jackal42

You could also use the style="color:red;" tag

Profile icon
RYANTADIPARTHI

Solution

Yes it is, you just have to make an identifier, and change the color. code:

<style> a { color: red; } </style> <a href="#">This is a link</a>

So wherever you see color. you can change it according to your needs. like blue, or green.
That should work

Profile icon
[deleted]

@RYANTADIPARTHI
can you read the other answers? What's the point of posting something twice?

Profile icon
[deleted]
a{ color: red; }