Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to: place a picture to a web page 1

Status
Not open for further replies.

zyrag

IS-IT--Management
Dec 4, 2002
252
PH
i have a picture located in /home/myhome directory. how do i place it on my web page?

php 4.3.0 --> /usr/local
apache 2.0.40 --> /usr/local

thanks,
 
what is usr/local? is it ur home directory?
i dont get ur question, u have the path of the file, why dont u use <img> tag?
 
/usr/local is the base directory/installation path of my php 4.3.0 and apache 2.0.40 on my redhat7.3 machine.

<img> tag? where can i find a reference for these.., i'm sorry, i'm new to html,php and linux..
 
the html tag for displaying an image is the img tag

<img source=&quot;path&quot;></img>

if u wan to give the picture as a link do this

<a href=&quot;page.html&quot;><img source=&quot;path&quot;></img></a>

 
The attribute is [tt]src[/tt], short for source. So the tag would be [tt]<img src=&quot;/path/to/image&quot; alt=&quot;Some text&quot; />[/tt]. Also note that there is a HTML forum here on Tek-Tips. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top