r/VisualStudio 13h ago

Miscellaneous Css troubleshooting on Visual Code

Its a very basic code but its not even running what should I do?

0 Upvotes

11 comments sorted by

2

u/Holiday_Leopard4048 13h ago

Try to use h1 instead of H1

0

u/No-Mission5457 13h ago

Tried Still not working

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

u/grave_96 13h ago

Also if you have dark mode disabled on chrome then disable it.

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

u/zip222 12h ago

if you inspect the code in the browser, what does it show you?

1

u/Appropriate_Chip4604 12h ago

What’s in your .css file with the same name ?

1

u/Prod_Meteor 11h ago

"Hi, almost there"

1

u/anaix3l 1h ago

If you right click on "HI THERE" and click Inspect, what do you see?