Home  >  Q&A  >  body text

How to specify source path of HTML image tag

<p>How to add an image to an HTML file directly from our C/D drive without taking it into the HTML file/folder? Is it possible? </p> <p>How to add an image to an HTML file directly from our C/D drive without taking it into the HTML file/folder? Is it possible? </p> <p>If there is a way I can add a file like in "C:\Users OMKAR OneDrive Desktop memories IMG20221004055341.jpg" we can include it in our HTML file without bringing it into the HTML file in the folder where the . </p>
P粉547362845P粉547362845431 days ago562

reply all(1)I'll reply

  • P粉718730956

    P粉7187309562023-08-16 13:49:48

    You should be able to simply do this:

    <img src="C:\Users\OMKAR\OneDrive\Desktop\memories\IMG20221004055341.jpg"/>
    

    Since the files are not in the same folder, you just need to use the absolute path to the file!

    reply
    0
  • Cancelreply