Search code examples
htmlhtml5-canvasvisual-web-developer

I want to change color in a Style tag HTML5, syntax is correct but it doesn't work, text is gray


So basicly what is happening is that: I have and H3 tag, inside I have a Style tag, which contain multiple properties: The H3 tag is the one im having problems

As for syntax, its ok, but it still doesnt cahnge the color of the h3. Please help!


Solution

  • i think other classes from your css applied , so what you need to do is either you need to remove that class or Simply Write

    <h3 style="color: black !important;">Any text</h3>  
    

    but !important is highly not recommended . for better practice make it class base.