Regarding path

hii folks!
i hope you all are doing great. I have a question regarding path


My question is can anyone explain me path for connecting cs and js file .
i really dont understand how (…/2project_digital_clock/clock.css) works,
and what will be path for star_programs css and js file?

Hi,

When files are all in the same folder, you can reference with a relative path.

This would be the following for you:

<link rel="stylesheet" href="./clock.css" />
<script src="./clock.js"></script>

Basically, .. means move up a directory and . means current directory.

See here for further reading:

1 Like

Thanks james for reply.I am trying to understand what you said :slight_smile:

Well let me know if you have any further questions.

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