PDA

View Full Version : Displaying an image on a blank page



shizzle
01-04-2009, 07:30 PM
Right, so I don't know much about 'coding language' and stuff, so don't be insulting:D

So I've got a site, I have a blank page, so how to I put an image there? This may sound stupid lol:P

Joshh
01-04-2009, 07:57 PM
Make a file called something like index.html and use whatever editor you want (HTML editor suits best...) then put in this code:

<img src="image.png" alt="your text">

Lelouch
03-04-2009, 04:52 AM
Create a new file, call it anything you want. Make sure you it has a .html extensions. eg, example.html
Upload your image, FTP, Cpanel. Whatever floats your boat.
Open the example.html file
and copy this code replacing what's needed.

<img src="Place your image here, make sure you keep the quotation marks" alt="Alittle about the image, not necessary." />

eg.
<img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="Google's Logo" />

shizzle
03-04-2009, 03:38 PM
Thanks guys, so I wasn't rubbish at HTML at all. I used that code before, but I forgot to make the file a .HTML lool! That's why it didn't work.

Want to hide these adverts? Register an account for free!