Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Html help please


  • Please log in to reply

#1
jrbennett89

jrbennett89

    Member

  • Member
  • PipPip
  • 21 posts
hello guys and gals, ive recently been teaching myself html code and on the videos i have watched it shows input of images as <img src="something"> and when i attempt to input a picture from my computer it wont register when tested i just get a box with a red box in it instead of a picture. most of the pictures are jpeg images also if it helps with answering i am using notepadd ++.

thanks to whom ever can help
  • 0

Advertisements


#2
AstraNut

AstraNut

    Member

  • Member
  • PipPipPip
  • 465 posts
The image path must be correct and when viewing the html file locally in your browser, the html file and image file must have the correct relationship as the src path shows. Use relative paths for all and be sure images are uploaded correctly along with the html files.

<img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description">


Absolute and Relative Paths

Edited by AstraNut, 25 April 2011 - 12:50 AM.

  • 0

#3
jrbennett89

jrbennett89

    Member

  • Topic Starter
  • Member
  • PipPip
  • 21 posts
hey yea thanks i figured it out a little while before you posted, it was pretty simple lol but thanks for posting your help. im sure i'll have more questions to come
  • 0

#4
AstraNut

AstraNut

    Member

  • Member
  • PipPipPip
  • 465 posts
You're welcome. Glad you got it solved so quickly.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP