user1016403
user1016403

Reputation: 12621

image is not displayed in html page?

I am using html. inside a table i have to display a logo. PFB code.

<table>
           <tr>
       <td>
<img src="C:\Documents and Settings\user\Desktop.company.jpg" />
</td> 
       </tr>

</table>

but image is not displayed. instead a blank image is displayed as below. enter image description here

what is wrong with my code? why actual image is not displaying here? Please help me.

Thanks!

Upvotes: 1

Views: 9551

Answers (4)

Jaymin Dalwadi
Jaymin Dalwadi

Reputation: 1

write code like below and see your problem solved

file:///C:\Documents and Settings\user\Desktop\company.jpg

Upvotes: 0

defau1t
defau1t

Reputation: 10619

If your image name is company.jpg then it should be

<img src="C:\Documents and Settings\user\Desktop\company.jpg" />

and not

<img src="C:\Documents and Settings\user\Desktop.company.jpg" />

Upvotes: 0

Sonal Khunt
Sonal Khunt

Reputation: 1894

image tag take 2 type of value of src attribute

1) relative path 2) server path

your path is not allowed

make folder name "images" in same directory where your file is and put image into it

give src like this <img src="images\Desktop.company.jpg" />

Upvotes: 0

supakeen
supakeen

Reputation: 2914

Your image path refers to your C:/ disk. Your C:/ disk is not accessible by everyone on the internet (I might hope).

I suggest you read this before you publish your website: http://www.webreference.com/html/tutorial2/3.html

Upvotes: 1

Related Questions