Css Path Inclusion for HTML

Website URL

about-pk.kesug.com

(please specify the URL of the site on which you are experiencing the problem)

Error Message

I do not understand the path to specify when adding css to my html page.
(please share the FULL error message you see, if applicable)

Other Information

I want to add javascript and css to my webpage, but am not able to due to the path not being recognized. How does the path system work here?
(other information and details relevant to your question)

It works exactly the same here as it does on other web hosts. The reason you it is not working for you is because your code is wrong. Your current code is looking for a file at https://about-pk.kesug.com/about-pk.kesug.com/index.css which does not exist.

If you want to use absolute paths, use one of these:

//about-pk.kesug.com/index.css
https://about-pk.kesug.com/index.css

If you want to use a relative path, do:

/index.css

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.