slash ( / ) before path or not

Discussion in 'HTML & Website Design' started by Carl29, Mar 9, 2011.

  1. #1
    Hi,
    when using relative paths to images, do you use a slash (/images/1.jpeg) before or not?

    what is the best method?
     
    Carl29, Mar 9, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    The slash indicates you are starting from the root of the site. Without the slash, you are indicating the path starts from where you currently are. Big difference.
     
    drhowarddrfine, Mar 9, 2011 IP
  3. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    +1 rep to you.

    You just helped me solve a HUGE issue with my site ;)

    Its not the big picture but, you showed small details :)
     
    eleetgeek, Mar 9, 2011 IP