The Abbreviated Hex Code

Tell us what’s happening:
The abbreviated hex code for the green color is not working. If I am doing it wrong please let me know.

“Use the abbreviated hex code for the color green instead of the hex code #00FF00.”

Your code so far

<style>
  .red-text {
    color: #F00;
  }
  .fuchsia-text {
    color: #F0F;
  }
  .cyan-text {
    color: #0FF;
  }
  .green-text {
    color: #0F0
  }
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="fuchsia-text">I am fuchsia!</h1>

<h1 class="cyan-text">I am cyan!</h1>

<h1 class="green-text">I am green!</h1>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/use-abbreviated-hex-code

You’re just missing a semicolon.

sigh…Thank you very much.(always the semi-colons)

That’s the life that we’ve chosen.

1 Like