CSS code not showing up in browser

A quick, simple question.

My CSS code to format the html elements with the class description of “code” is not working. I set the background color to yellow for all elements with the class “code”, however nothing shows up in the browser after doing this. Any tips or advice? My CSS file is correctly linked because other CSS formatting is showing up. Please see link below! Thanks!

Hope this was easy to follow.

1 Like

You did not close the background-color rule with a semi colon like so:

.code {background-color: yellow;
font-family: monospace}

Btw I do suggest you use line breaks to make the code more readable and easier to debug, like so:

.code {
    background-color: yellow;
    font-family: monospace;
1 Like