Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Changing the color of a link

Posted by: tanhooey May 28 2020, 11:03 AM

Hello all! I am just getting started in learning HTML, and I just found out about changing text colors and links using the "href" tag. Though I can change the font and alignment of my link, I can't seem to change the color of the link. Here is my code:

<!DOCTYPE html>
<style>
body{
font-family:courier;
text-align: center;
color:red
}
</style>
<body>
<a href="https://www.wix.com" style="text-decoration:none color:yellow">Visit my Instagram page!</a>
</body>
</html>
Any help + tools for further practice would be greatly appreciated. Thank you!

Posted by: Christian J May 28 2020, 02:35 PM

See https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_links

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)