I have problem with <style> and <h2>

What is the problem. I did exactly what was asked of me and tried it on Visual Studio Code and it worked. I tested the code on this site
style problem

and it gave me the same result>>> Click on the image to go to the site

I think it’s format issue, you may need to break it into 3 lines like

h2
{
    color: red;
}
![Capture|690x498](upload://ql6MolJ2yeAbD2Eq1NPDKAs47ul.png)
1 Like

In html the spaces do not matter. Whether the code is written my way or your way, it’s all correct

thank you for your reply

1 Like

If you notice that the color blue is applied to element h2 in the preview

the issue is your dark mode extension

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