Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. How do I stop the Flickering on Mode 13h? You can change the color of the hyperlink to something other than black and change the color when you touch the hyperlink or hypertext with the mouse. Agree A minor scale definition: am I missing something? Viewed 14k times 2 I need to style links for How to create a hyperlink to link another document in HTML. To make all of the links on your web page not have underlines, configure the text-decoration style of the a (anchor) element. Visited links are purple. With CSS, links can be styled in many different ways. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. If you need different color and decoration styling you can easily override the defaults using the below code snippet. } If you're a web developer, you've probably wanted to get rid of the default underline that appears when you add a link to a page. To remove the default blue color from link just use CSS color:black; property.Where you can choose any color like green, yellow, pink, gray, lightgray and more. If you put these in the wrong order, and you're changing the same properties in each ruleset, things won't work as you expect. If you want to ADD underline to a text using CSS, then you can add that underline using text-decoration:underline; property.Which will add underline to selected HTML element/Text. background, etc.). Why does HTML think chucknorris is a color? Defining a style property this way is called inline styling. You can also remove the default underline all in one with the anchor element selector: You can play with the 4 pseudo-classes of the link tag with this pen: I hope this article helps you learn how to remove the default underline from links in CSS. color: inherit; Learn more. unicode-bidi and What this does is removes the outline for all the three pseudo-classes. Save my name, email, and website in this browser for the next time I comment. How can I set the default value for an HTML