It depends on where your CSS files are located in relation to your HTML file that is referencing them.
If your CSS files are located in the same directory as your HTML file, then the link you have provided is correct.
However, if your CSS files are located in a subdomain or a different directory, you will need to update the link to correctly point to the location of the files.
For example, if your CSS files are located in a subdomain called styles
, the link would need to be updated to:
<link rel="stylesheet" type="text/css" href="styles/style.css" />
This will tell the browser to look for the style.css
file in the styles
subfolder.
Also, you can use an absolute path (with the full URL) like:
<link rel="stylesheet" type="text/css" href="https://subdomain.example.com/styles/style.css" />
It's important to make sure that the link is correct and points to the correct location of the CSS files in order for the styles to be applied correctly to your website.