random1 Posted July 14, 2010 Share Posted July 14, 2010 I have a really basic question for paths and HTML. For a basic image HTML tag example I have: <img src="images\example.png" width="100" height="100" /> For a relative path (like above src attribute) for a website should you use \ or / to separate directory levels? I think I read somewhere that \ is local and / is remote? Link to comment https://forums.phpfreaks.com/topic/207685-paths-for-html-images/ Share on other sites More sharing options...
Pikachu2000 Posted July 14, 2010 Share Posted July 14, 2010 / Link to comment https://forums.phpfreaks.com/topic/207685-paths-for-html-images/#findComment-1085696 Share on other sites More sharing options...
haku Posted July 14, 2010 Share Posted July 14, 2010 Backslashes are used internally with windows, and never with the web. Link to comment https://forums.phpfreaks.com/topic/207685-paths-for-html-images/#findComment-1085697 Share on other sites More sharing options...
random1 Posted July 14, 2010 Author Share Posted July 14, 2010 Thanks all Link to comment https://forums.phpfreaks.com/topic/207685-paths-for-html-images/#findComment-1085742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.