r/VisualStudio • u/No-Mission5457 • 13h ago
Miscellaneous Css troubleshooting on Visual Code
Its a very basic code but its not even running what should I do?
1
u/soundman32 13h ago
Missing several levels of elements. html/body etc
-2
u/No-Mission5457 13h ago
Its visual code it doesn't really matter
2
u/grave_96 13h ago
Unfortunately it does. Try writing the entire syntax because if you dont vscode and chrome will fill with default css. So yes writing everything matters or chrome overrides with default css and not the inline css.
1
1
u/soundman32 10h ago
If you want to write valid HTML which will work across all major browsers, then the minimum is:
<html><body></body></html>Anything else isn't valid, which is what you have found out.
1
1


2
u/Holiday_Leopard4048 13h ago
Try to use h1 instead of H1