I had the image in another disk other than C, so it did not work.- After some research, and taking a look at the adress bar, I noticed some extra slashes, and now I can see the image where it's supposed to be.- Just in case someone might find it useful: Oh, by the way, I guess there is not a 'localhost' for I am not using one, the html file is on same disk, but it's not -yet- on a server(He, have no idea how to do it! Under what conditions does a Martial Spellcaster need the Warcaster feat to comfortably cast spells? The HTML file path would be: /articles/MyDog.html. The example above uses an Ogg file, and will work in Chrome, Edge, Firefox and Opera. Thanks for contributing an answer to Stack Overflow! . That image tag path would look like this: However in windows land the path to my images would be something like \\theOtherServerMapping\wwwRoot\inetpub\images How would I write the path to such an image directory in my html tags? Why continue counting/certifying electors after one candidate has secured a majority? You might have to do some research on that, but I think it has something to do with how the page is rendered, objects defined in the header section are rendered pre the page load, so although you are asking for c:\xxx.css it is actually being found as if on the server, am waffling might not be even close :). How do I hang curtains on a cutout like this? Correct Img Src Path with Javascript and Jquery, image src is not displaying the page in php. I have an image in C:\wamp\www\site\img and i try to display it in a page with this: but it's not working.The file is actually there and if I try to refer to it with a relative path i got the picture. Asking for help, clarification, or responding to other answers. You might have to do some research on that, but I think it has something to do with how the page is rendered, objects defined in the header section are rendered pre the page load, so although you are asking for c:\xxx.css it is actually being found as if on the server, am waffling might not be even close :). How true is this observation concerning battle? The image file should be in the same folder as the HTML file, if you plan to upload the folder to a web server. Also, be sure to close the img tag : Why battery voltage is lower than system/alternator voltage. Using img tag and code it correctly in local HTML file. If I knock down this building, how many other buildings do I knock down as well? This can either be a full URL, an absolute path on the current site, or a path relative to the current page. Relative img src is resolved as absolute… what am I missing? I got it Luke thanks!now I was wondering why i didn't encounter the same problem with my css file referenced the same using my "C drive". What is the earliest queen move in any strong, modern opening? Now in the index.html.en file you'll want to put the following markup, Now if you load up the index.html.en file located in the second subfolder Would it break things to allow a Barbarian to cast spells in rage? How to properly reference local resources in HTML? Absolute path example Relative example. URLs will resolve to local resources only if the page was loaded from a local HTML file (usually expressed as a file://... URL). See explanation here. src: Specifies the URL of an image to be displayed. In this example, i will give you example of laravel display image from storage folder. Following are the different types to specify file paths: The src or href attribute requires an attribute to link any external source to HTML file. By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. If you don't have the leading slash, you're referencing from the current directory. Join Stack Overflow to learn, share knowledge, and build your career. How many things can a person hold and use at one time? What are valid values for the id attribute in HTML? Does healing an unconscious, dying player character restore only up to 1 hp unless they have been stabilised? But how to load it to app? Because the index.html file and the images folder are in the same folder, we can simply have a url of images to link to the images folder. How can I set the default value for an HTML