General / Posts /

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

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  4 years ago   viewed: 30095    

3 Answers


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   4 years ago

how to use imageslider in netbeans

  3 years ago

Web developers to share hosted websites via Google Drive. All you have to do is store your HTML, JavaScript, and CSS files, and then share a link to your starting HTML file.In fact, Google is eating its own dog food by hosting the instructions on how to do this yourself, on Google Drive.

Here’s what you have to do:

Create a new folder in Drive and share it as “Public on the web.”

Upload your HTML, JS & CSS files to this folder.

Open the HTML file & you will see “Preview” button in the toolbar.

Share the URL that looks like… from the preview window and anyone can view your web page.

It’s a small update, but certainly a welcome one for Web developers. If you build or design sites and need to demo your work for clients, this should be a very useful way to show off what you’ve got so far. Java training in chennai | Android training in chennai

  2 years ago


Your name*
(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.