Dr. Code February 2016

Add an image from computer not from web

Following code is okey.

<html>
<body>
<h2>Blue eye</h2>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Blueye.JPG/220px-Blueye.JPG" style="width:304px;height:228px;">
</body>
</html>

How to add an image from your computer not from web?

I am trying to sent outlook mail from my personal computer.

So, I want to sent image from my personal computer.

Following code doesnt work!

<html>
<body>
<h2>Blue eye</h2>
<img src="C:\MyPicture.jpg" style="width:304px;height:228px;">
</body>
</html>

Answers


Jared February 2016

Instead of using a url in your src property, use the physical path of the image


HoodieHero February 2016

Well change the

   "https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Blueye.JPG/220px-Blueye.JPG"

link to the location so

    <img src="C:\MyPicture.jpg" style="width:304px;height:228px;">

If it isn't working check to make sure you have quotes around the location, make sure you have spelt everything correctly, and make sure it's a .jpg(if it is in the link it probably is if you downloaded it but just double check).

Post Status

Asked in February 2016
Viewed 1,630 times
Voted 5
Answered 2 times

Search




Leave an answer