The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Image not showing up in HTML
throwaway
post Jan 10 2017, 06:51 PM
Post #1





Group: Members
Posts: 3
Joined: 10-January 17
Member No.: 26,261



Hi, absolute beginner to HTML here. Trying to get a simple website up but images aren't loading. Here is the webpage for reference: http://acsweb.ucsd.edu/~gpc001/examples.html

Thank you for any help.

I've tried all of these formats for my picture (diff file names but all same picture):

<img src=“pr1.gif”>
<img src=“pracprob1.png”>
<img src=“http://acsweb.ucsd.edu/~gpc001/pracprob1.png”>
<img src=“http://acsweb.ucsd.edu/~gpc001/pracprob1.png”>
<img src="images/irTRAUW.gif">
<img src="images/irTRAUW.gif" />
<img src="../images/irTRAUW.gif" />
<img src="/images/irTRAUW.gif" />

"http://acsweb.ucsd.edu/~gpc001/pracprob1.png" (and other file paths) shows up when I enter it in the address bar but it fails when I put it in the <img....> or <a href=...> format.

Public html folder: IPB Image



Images folder: IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Jan 10 2017, 08:42 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(throwaway @ Jan 11 2017, 12:51 AM) *

<img src=“pr1.gif”>
<img src=“pracprob1.png”>
<img src=“http://acsweb.ucsd.edu/~gpc001/pracprob1.png”>
<img src=“http://acsweb.ucsd.edu/~gpc001/pracprob1.png”>

The above uses the wrong kinds of doublequote characters. Avoid using an editor that inserts those.

CODE
<img src="images/irTRAUW.gif">
<img src="images/irTRAUW.gif" />

The above seems correct.

CODE
<img src="../images/irTRAUW.gif" />
<img src="/images/irTRAUW.gif" />

The above seems to use wrong image paths. See also http://htmlhelp.com/faq/html/basics.html#relative-url
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 04:01 AM