Your <style> should have a pink-text CSS class that changes the color

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

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums