Relative path in HTML

You say your website is in http://localhost/mywebsite, and let’s say that your image is inside a subfolder named pictures/: Absolute path If you use an absolute path, / would point to the root of the site, not the root of the document: localhost in your case. That’s why you need to specify your document’s folder in order to access the pictures folder: And it would … Read more