The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Changing the color of a link
tanhooey
post May 28 2020, 11:03 AM
Post #1





Group: Members
Posts: 1
Joined: 28-May 20
Member No.: 27,366



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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 28 2020, 02:35 PM
Post #2


.
********

Group: WDG Moderators
Posts: 8,463
Joined: 10-August 06
Member No.: 7



See https://developer.mozilla.org/en-US/docs/Le...t/Styling_links
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 6th July 2020 - 10:14 PM