I can't rely my css page to my html page.
Closedgulshan212 Posts 5 Registration date Monday November 28, 2022 Status Member Last seen April 25, 2023 - Apr 13, 2023 at 03:21 AM
- I can't rely my css page to my html page.
- Remove image border css - Guide
- Connection failed after 4 retries css - Guide
- Css transparent div - Guide
- Remove underline from link css - Guide
- Css text color - Guide
3 responses
Updated on Apr 13, 2023 at 04:59 AM
It seems that your html file and css file is not located in right folder or specified css path is incorrect.
For example if your html file inside 'site' folder then css path should be 'css/styles.css'
<link rel="stylesheet" type="text/css" href="css/styles.css" />
Nov 4, 2022 at 03:38 AM
Never knew about that tip so I think that is really helpful. I might have to give it a try and see whether it will make things earied for me when I code.
Updated on Apr 13, 2023 at 04:59 AM
Hello this is Gulshan Negi
Well, the code you provided does not contain any errors in terms of HTML syntax. However, it's possible that an error could occur if the linked stylesheet file "styles.css" does not exist in the specified location "site/css".
It's important to ensure that the file path specified in the href attribute of the <link> tag is correct and the file "styles.css" actually exists in that location. If the file path is incorrect or the file does not exist, the browser will not be able to apply the styles defined in the stylesheet to the webpage.
I hope you are clear now.
Thanks