On mac, type in:

  • file:///Users/YOUR_USERNAME/folder/wherever/you/saved/your/file.html

I also learned that typing “../” moves up a directory from the level you’re currently at. For example, if an image called “cat.jpg” was saved in a folder whose root folder was above a level from the document that you’re working in, typing in “../” moves you up to the level of the root folder. Then all you would need to do is type in the path where cat.jpg was saved. Here’s another example in practice:

  • <img src=”../rootfolder/animals/cats/cat.jpg” />

</span>

blog comments powered by Disqus
  • Hi, I'm Linda! I enjoy going to tech meetups, learning web development, and blogging about the learning path. Follow me @LPnotes

Subscribe to The Coding Diaries