Run ยป
<!DOCTYPE html> <html> <head> <style> .nounderline { text-decoration: none; } .underline { text-decoration: underline; } </style> </head> <body> <a href="https://www.studentstutorial.com/" class="underline">Underline link</a> <br> <br> <a href="https://www.studentstutorial.com/" class="nounderline">None Underline link</a> </body> </html> Background Color The background-color property used to add a background-color for links. <!DOCTYPE html> <html> <head> <style> a:link { background-color: yellow; } a:visited { background-color: cyan; } a:hover { background-color: lightgreen; } a:active { background-color: green; } </style> </head> <body> <h3><b><a href="https://www.studentstutorial.com/" target="_blank">Student Tutorial</a></b></h3> </body> </html>