Styling Links and Buttons
Style link states in order: link, visited, hover, active (LoVe HAte). Give buttons padding, a clear focus style and a hover colour.
Example
<style>
a { color: #5eead4 } a:hover { color: #f59e0b } .btn { display: inline-block; padding: 8px 14px; background: #04AA6D; color: #fff; border-radius: 4px; text-decoration: none }
</style>
<a href="#x">Link</a> <a class="btn" href="#y">Button</a>Exercise
Mouse over state.
a:Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.