[英]For some reason my CSS just doesn't apply to my html what am i doing wrong?
ok, disclaimer: I am learning web dev right now and am at a very beginner level so please say something that won't just go over my head... THE PROBLEM: I made a small and basic html file and tried using css on it but for some reason it just won't apply to my html and I've no idea what I'm doing wrong... ok, disclaimer: I am learning web dev right now and am at a very beginner level so please say something that won't just go over my head... THE PROBLEM: I made a small and basic html file and tried using css on但由于某种原因,它不适用于我的 html 而且我不知道我做错了什么......
Here's my html: [enter image description here][1] [1]: https://i.stack.imgur.com/JztBH.png这是我的 html:[在此处输入图像描述][1] [1]:https://i.stack.imgur.com/JztBH.png
Here's my css: [enter image description here][2] [2]: https://i.stack.imgur.com/NexBy.png这是我的 css:[在此处输入图像描述][2] [2]:https://i.stack.imgur.com/NexBy.png
I have them both in the exact same file and I have no clue what I'm doing wrong so please explain my mistake....我将它们都放在完全相同的文件中,我不知道我做错了什么,所以请解释我的错误....
try it试试看
<link rel="stylesheet" type='text/css' href="styles.css">
You have syntax errors, use this for including css:您有语法错误,使用它来包含 css:
<link rel="stylesheet" href="style.css">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.