Thomas Hutton Thomas Hutton - 4 months ago 9
HTML Question

Font Color Isn't Changing

I know this is a rookie question, but why isn't my font colour changing?

My HTML:

<h1 class="InternetTitle">Internet Services</h1>


My CSS:

.InternetTitle {
color: 2777fd;
text-align: center;
}


It aligns my text vertically, but it doesn't change my color. And I can't figure out why.

I've also tried:

<h1>Internet Services</h1>

h1 {
color: 2777fd;
text-align: center;
}

Answer

You're missing the # - color: #2777fd.