Jump to content

I need help adding a image

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
CyleDyerHero1

CyleDyerHero1

    Newbie

  • Members
  • PipPip
  • 13 posts
Please help

#2
Vizlim

Vizlim

    Newbie

  • Members
  • Pip
  • 5 posts
<img src="title_image.gif" width="100" height="100">


#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts

CyleDyerHero1 said:

Please help
Unless you're wishing to waste our time, try to ask a more constructive question so we can help you!
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
CyleDyerHero1

CyleDyerHero1

    Newbie

  • Members
  • PipPip
  • 13 posts
Thanks Vizlim!

@Nullw0rm -- I did Post a Constructive Question and i had done this In the Title

#5
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
i always recommend your html files to be XHTML valid. And some performance improvements follow
1.image needs to be loaded fast then provide width , height.
2. Dont scale down a Big image using width , height
3.Provide a Absolute URL/Path to image [ to avoid getting 404'ed ]
4.Use the alt attribute. So your image should always be
<img src="http://URL/Images/bull.png" alt="Matador" width="100px" height="40px" onClick="location.href='http://adURL'"></img>


#6
dcord

dcord

    Newbie

  • Members
  • PipPip
  • 25 posts
whenever you insert an image make sure and add an alt= attribute or it wont pass validation.. alt= "imagename" width and height

#7
mnamjad

mnamjad

    Newbie

  • Members
  • Pip
  • 8 posts
Its quite simple...

In html <img> tag is used to add an image on the page.

<img> tag contain two main attribute. (src & alt)
src tells the source path of the image.
alt is the tooltip that shows when you put the cursor on the image.

For example, your image file name is image.gif and it is placed in the same folder, then your code to add image on the page will be.

Quote

<img src="image.gif" alt="Image" />