Prioritize One Style Over Another exercise not working

Tell us what’s happening:
Describe your issue in detail here.

Why isn’t this passing the test? I watched the help video and this matches exactly. Help.

   **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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

Challenge: Prioritize One Style Over Another

Link to the challenge:

Hi @mkchadha and welcome in the forum,

You have a syntax issue:

<h1 class:"pink-text">Hello World!</h1>

Watch carefully the syntax of your class attribute.

Example of attribute syntaxes:

<img src="" alt="">

In case you are still having problems, let’s look at a comparison of the proper Syntax

<h1 class="blank text">Hello World!</h1>
<h1 class:"pink-text">Hello World!</h1>

Yep. It took a second set of eyes to notice my capture slip in the H1 attribute. I kept typing “:” instead of “=”.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.