Agyan
adda
Run
Reset
Copy
CSS Tutorial › CSS Links › Link states and button links
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<style> a { color: #1f6feb; text-decoration: none; } a:hover { text-decoration: underline; } a:active { color: crimson; } .btn { display: inline-block; background: #1f386b; color: white; padding: 10px 18px; border-radius: 6px; } .btn:hover { background: #2d4f94; text-decoration: none; } </style> <p><a href="#">Hover over this link</a></p> <a class="btn" href="#">Button-style link</a>
Result