Local files in HTML

  • Thread starter Kelvari
  • 1 comments
  • 569 views
314
United States
Normal, IL
DvorakUser
VastSquare13
I'm working on a project for school, and I'm trying to call some local files for an HTML-encoded web page. I've tried 'src="../folder/file"' as well as 'src="..\folder\file"' and even just 'src="file"', but nothing's working. Would someone be able to point me in the direction I need to go?
 
Where is the file relative to the page?

If it’s an image named image.jpg and it’s in the same directory as the HTML file you just need to go src="image.jpg". If the file is in a folder (where the folder is in the same directory as the file) called images then you need to type src="images/image.jpg".
 
Back