jasika Posted July 11, 2013 Share Posted July 11, 2013 (edited) can anyone please suggest how to add an image in a html file from the desktop. i would like to tell that i am working on html4 also someone suggested the code snippet <img src="C:UsersaldiazDesktopDynamicsTest1.jpg" style="height:200px;width:100px;float:left"> can you please explain me the same thank you... Edited July 11, 2013 by jasika Link to comment Share on other sites More sharing options...
Ingolme Posted July 11, 2013 Share Posted July 11, 2013 I don't see a point in linking to an image on the desktop. If the HTML file itself is on the desktop just put the name of the image file and it will work. Websites are eventually intended to be put on a web server, so using a local filesystem URI isn't really useful. 1 Link to comment Share on other sites More sharing options...
jasika Posted July 11, 2013 Author Share Posted July 11, 2013 thank you sir for the answer but sir i actually want to add a company logo on to the html document which is on the desktop!!! Link to comment Share on other sites More sharing options...
Ingolme Posted July 11, 2013 Share Posted July 11, 2013 The URL you would use in the src attribute would be something like this:Windows XP: file:///C:Documents and Settings[username]Desktopfile.jpg Windows Vista / Windows 7: file:///C:Users[username]Desktopfile.jpg Link to comment Share on other sites More sharing options...
jasika Posted July 11, 2013 Author Share Posted July 11, 2013 thanks a lot sir..... m indebted to u Link to comment Share on other sites More sharing options...
jasika Posted July 15, 2013 Author Share Posted July 15, 2013 Sir i have created the structure to add the desired file and i have set the path but when i execute the src attribute the link is in the search block but is not succesfully executed Link to comment Share on other sites More sharing options...
thescientist Posted July 15, 2013 Share Posted July 15, 2013 look in your error console. it will tell you where the browser is trying to look for the file, and you can match that against the path that it is actually located on the filesystem. Compare the two to try and see where the deviation is. Link to comment Share on other sites More sharing options...
jasika Posted July 19, 2013 Author Share Posted July 19, 2013 thank you sir i sorted out this problem i am thankful to u for the same....... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now