Home > other >  why does in VScode this heart ❤ emoji give me gray color instead of red , but why all other emojis a
why does in VScode this heart ❤ emoji give me gray color instead of red , but why all other emojis a

Time:07-22

here is my codepen link. I can't make the heart emoji red.

https://codepen.io/Touraf/pen/MWVoyzW

This where the emoji is-

The Basic Language of the Web: HTML

      <img
        src="IMG/laura-jones.jpg"
        alt="Headshot of Laura Jones"
        height="50"
        width="50"
      />

      <p id="author">
        Posted by <strong>Laura Jones</strong> on Monday, June 21st 2027
      </p>

      <img
        src="IMG/post-img.jpg"
        alt="HTML code on a screen"
        width="500"
        height="200"
        
      />
      <button>❤ Like</button>
    </header>

CodePudding user response:

Just add this to your css and it should work

button:first-letter {
  color: red;
}
  • Related