Why isnt this code working?

Tell us what’s happening:

Your code so far


<style>
body {
  background-color: black;
  font-family: monospace;
  color: green;
}
  .pink-text; {
    color: pink;}
</style>
<h1 class="pink-text">Hello World!</h1>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G960U) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.2 Chrome/75.0.3770.143 Mobile Safari/537.36.

Challenge: Prioritize One Style Over Another

Link to the challenge:

The semicolon here is incorrect syntax.

2 Likes

It might sound wierd but I dont get it

This is incorrect syntax for a CSS selector.

This is correct syntax.

The semi-colon does not belong. :slight_smile:

3 Likes

I appreciate ur help. I got it right. Thanks. :slight_smile: