0

Adding image to html

I am finding it very difficult to add images from my desktop to my html..any help

17th Apr 2024, 4:30 PM
Michael Frimpong Boateng
Michael Frimpong Boateng - avatar
4 Respostas
+ 5
See this post, hope it's helpful to you https://www.sololearn.com/post/1742383/?ref=app
17th Apr 2024, 7:34 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 4
where is your html file located? there are few ways to add: give the absolute location give the relative location give the location from the internet link your code that we can help you more accurately, and tag the relevant tags, for instance: html don't use "help", because we don't know from that what you are looking for, but everybody want help who asks here
17th Apr 2024, 4:50 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
To add an image to your HTML file from your desktop, use the following code and steps: <img src="file-path-on-your-desktop/image.jpg" alt="Description of the image"> Replace "file-path-on-your-desktop/image.jpg" with the actual file path of your image on your desktop. It looks like that: C:\users\...\image.jpg [ Here "C:\", Depend on the driver you put the file ] If it won't work, try using the file:/// protocol if you want to link to local files. Like that: file:///C:\users\...\image.jpg And How do you find the directory of a file? It is easy one. Open the location of the desired file, hold down the Shift key and right-click the file and copy As Path.
17th Apr 2024, 5:13 PM
`ᴴᵗᵗየ
`ᴴᵗᵗየ - avatar
0
It is easy
19th Apr 2024, 9:49 AM
Aryan Bhagat