HTML/CSS basics
0. Anchor tag
Here we got a simple link:
Here's the HTML for it:
<a href='http://google.com'>Visit Google</a>
1. Underline
Let's remove the underline using the CSS code:
text-decoration: none;
2. Background color
Let's set a background color!
background: #4286f4;
3. Font color
Let's change the color using the CSS rule:
color: white;
4. Padding
Give some breathing space.
Let's add some padding to increase the space inside it:
padding: 0.5em 1em 0.5em 1em;
This CSS code sets top and bottom padding to 0.5em
and left and right padding to 1em.
5. Border-radius
A little roundness wouldn't be bad, eh?
border-radius: 3px;
And before you realized it, we turned a simple anchor tag to a full fledged decent looking button!