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
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).
That’s it. Thank you very much
Madness what forgotten brackets and “wrong spelling” can trigger everything.
red text = error. With such simple codes you can also ask in Chat GTP. Simply insert code and ask why nix is good
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
I could have come to ChatGPT. Hab ne Red/Green Vulnerability ð
Try ./css/ instead of css/.
Otherwise, I would also highly recommend the Live Server extension for VsCode.
Does not work:-)
I activated Live Server now. Thank you
So you started the index.html with Liveserver?
There is no actual difference between these path details.
I just noticed. Is probably the unclosed meta day in line 7 of the problems…
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).
Yes, it was. Thanks for the help ðŸ ̃‚
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.
But shouldn’t have anything to do with it now?
Got the error message “device-with” for key “width” is invalid, and has been ignored
e.g. in the console
What do I need to look for?
I opened the developer tools.
Have you ever seen the web browser in the developer tools?
That’s right. As soon as I change the text and store it also updates. Just not the background color.
Rather on the browser cache where the old CSS data are still lying and are not reloaded.
How can I handle this? Just deleted and retrieved the browser data.
No change. Also in the other browser not used up to now nothing changes?!