General / Posts /

Where should I upload the JS CSS and images files to the server

43
I am a novice in web design. Would you give me some hints on what location the JavaScript, CSS and HTML pages should be uploaded to on the web server?
Harrison  10 years ago   viewed: 45661    

6 Answers

12

It doesn't matter where you upload your js, css, html and images. It matters whether your links or file paths in your page(eg. HTML file) and CSS code are correct.

There are two ways to specify the paths. One is absolute, such as "/level1/level2/level3/myjs.js"

The other is relative, such as "level3/myjs.js"(assuming your page is located in level2).

If you are using relative path, you need to pay attention to the images specified in your CSS file. The relative image path in your CSS file should be relative to your CSS file location instead of your page location.  

Natalia   10 years ago
1

Thanks for your guidance.  

Axel
  8 months ago
1

I appreciate this guideline. Thanks

Michelle
  7 months ago
0

This rule of thumb is quite helpful. I am grateful. doodle jump

Hector Acosta
  one month ago
0

The catalyst in the light reaction is temperature

Benny Pfeffer   26 days ago
0

The catalyst in the light reaction is temperature, demonstrating the importance of environmental factors in photosynthesis. Understanding this process can enhance our knowledge of plant biology and its applications in areas like agriculture. Similarly, in a virtual setting like Monkey Mart, optimizing conditions for growth and efficiency can lead to better outcomes, whether in harvesting resources or managing tasks effectively.


monkeymart
  2 days ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question:
    • If your question is related to the General, click:

      Ask new question: General
    • Otherwise navigate to one of the following forum categories, and post your question there.

      ##