Web Analytics Made Easy -
StatCounter Img source problems for my Website - CodingForum

Announcement

Collapse
No announcement yet.

Img source problems for my Website

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Img source problems for my Website

    When im writing the code for puting an image in HTML you put the path to get to the image in your computer. but in my wensite ive been writing the code directly on the website so it isnt stored on my computer. So what do i write in the source attribute to put an image on there?

  • #2
    If image is in same folder on server, then simply you can write

    Code:
    <img src="imagename.png" alt="Image" width="100" height="100" />
    If your image is placed in any sub-folder, then path would be

    Code:
    <img src="foldername/imagename.png" alt="Image" width="100" height="100" />

    Comment

    Working...
    X