Wieso ändert sich die Hintergrundfarbe nicht?

Hallo, ich probiere mich gerade ein wenig beim HTML coden aus und komme gerade nicht weiter.
Laut Tutorial sollte sich eigentlich ja jetzt die Hintergrundfarbe ändern aber bei mir bleibt sie weiß. Liegt das an den Klammern?
Was muss ich anders machen?
Siehe Bilder

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
21 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
regex9
9 months ago

In line 7 of your HTML document there is still a closing sharp clamp (>). Without her, metadata– Incomplete day.

In line 5, there is no d (device-width).

GamersGame
9 months ago
Reply to  Coder1234

red text = error. With such simple codes you can also ask in Chat GTP. Simply insert code and ask why nix is good

GamersGame
9 months ago

Then it would make sense to change your theme in VS code. I just found this theme: https://marketplace.visualstudio.com/items?itemName=tankashing.blinds-theme

would be very useful in the future, because you can’t recognize the mistakes correctly.
Pro tip: get this plugin too: https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag

whgoffline
9 months ago

Try ./css/ instead of css/.

Otherwise, I would also highly recommend the Live Server extension for VsCode.

whgoffline
9 months ago
Reply to  Coder1234

So you started the index.html with Liveserver?

regex9
9 months ago
Reply to  whgoffline

There is no actual difference between these path details.

whgoffline
9 months ago
Reply to  regex9

I just noticed. Is probably the unclosed meta day in line 7 of the problems…

whgoffline
9 months ago

No cause. Ps.: I guess you did the html yourself. With emmet you can also work with ! and then tab (usually only works in html files).

whgoffline
9 months ago

Oh, man… So you can fix the device-width in the html, but the problem is probably the not closed meta tag before the link with the css in line 7.

whgoffline
9 months ago

e.g. in the console

whgoffline
9 months ago

Have you ever seen the web browser in the developer tools?

Xandros0506
9 months ago

Is that the clamps?

Rather on the browser cache where the old CSS data are still lying and are not reloaded.