file:/// URLs work fine for viewing (most) web content on your own computer, but your mobile devices don't understand this.
Do you currently have a web server running on your Mac to serve your web content?
If not, you'll need to set one up. It's pretty simple to do so, especially on a Mac. These articles should be helpful in setting this up: