I'm completely new to coding, so please be gentle with me! I'm trying to add CSS code to a button, I've tested it in Codepen which shows it as working, but when I've tried it in my browser, it's coming up with a hyperlink, then the code alongside it.
<a href="index.html" class="button">Home</a>
.button
{padding: 10px 24px;
font-family: trebuchet;
Color: #E8DCEC;
Background-color: #ed1c24;
text-align: center;
display: inline-block;
font-size: 16px;
border: 2px solid #8b52a1;
border-radius: 4px;}
.button:hover {
background-color: #72bf44
color: #E8DCEC; }
I'm sure I've missed something totally obvious here, but I've looked over it so much and I can't see anything
<style></style>tags? Codepen does that for you automatically. If not, you should probably read up on the basics of an HTML page.