Posted: Tue Mar 25, 2008 3:44 pm Alt appearing instead of image
I am very new at this and I am just doing this for a class. I have tried multiple times to get my image to show up on the page and no matter what the Alt shows up instead. This is the section of code it is in:
<div style="text-align: center;">
<img src="foxrolling.jpg" alt="dirty fox rolling">
<Br> <span style="color: brown;"> <b> <span style="font-size: x-large;">
This is me doing what I do best! <b> </span> </span> </span> </div>
The image is in my public directory and permissions are correct.
Thanks,
Katie
ogsolution
Joined: 26 Dec 2007
Posts: 144
Posted: Tue Mar 25, 2008 9:52 pm
First thing that comes to my mind is that you may have your image path set incorrectly. There are two ways to point to the image: 1)relative path and 2)absolute path.
1)Relative path is pointing to the image based on where your current HTML file is
Example:
Code: <img src="image/myimage.jpg"> )
2)Absolute path is setting the direct link to the image