Does anyone know if its possible to save an HTML file to your iphone and then open it with Safari so that you can then favourite it and have it appear on the launcher as an icon?
I do it using the 'Notes' app on my iphone. Quick and free download.
I emailed the file to myself, then opened it on my phone via email. Inside the email, I clicked the html file. This opened it. I then clicked the download button on the top right of my particular iphone. After that I clicked "Add to Notes".
Once the page is opened on your iPhone all you have to do is tap the Sharing icon, middle icon on bottom, and select 'Add to Home Screen'
If you want to load an html file that you've created on you Mac to your iPhone you'll need to do the following. From System Prefs > Sharing > Enable Web Sharing. Place the html file in your ~/Sites folder. Go the the URL listed in the Web Sharing panel from your iPhone, while on the home network, and open the html file. It will load in Mobile Safari.
If you want this to stay on your iPhone you'll need to have the page written in html5 and have a properly setup CACHE MANIFEST. This includes the appropriate tag in the html file and have the proper manifest file. Then you can follow the first step and add it to your home screen and always have it on your iPhone.
HTML file I'm assuming you are talking about some pages on the web.
If so yes you can by pressing on the:
and you will have the icon on your homescreen to use it next time.
But for your information this is not the actual saving of that page it just like a favorite bookmark icon which can make you easily access to that page with a touch!.
But if you want to really save that page in an offline mode then you have to jailbreak your phone and get a tweak from Cydia which will give you an option to save it as an offline to open it next time.
And last thing if I was wrong for the above answer. And you were talking about actualy HTML code page and you want to save them and open to view the code [Source codes]
then you probably need an app from appstore [or even from cydia] or tweak from cydia to do that otherwise you can't.
To get the Page to your Phone there are a lot of ways to do this. You can use any Cloud Drive App you like (iCloud, OneDrive, Dropbox) it will also Work via Mail or if you have an App that Supports in App Transfer via iTunes etc.
To open/view thre Page you can use any HTML Editor App on the Phone but i have found none of them beeing able Preview the Page in Safari all of them had their own HTML Preview.
A Second Downside is that if you are somehow able to Preview the Page inside of Safari from within an App the actual File of the Page is just put to a temp Folder and when you exit the Editor App the File will get deleted.
Now if you later open the Page again over the in the Homescreen saved Icon it won't work cause it isn't there anymore.
If you don't mind opening a App before opening the HTML File you can use one of the Editors or even GoodReader which can also handle HTML Files.
If you really need it to be a Icon i recommend you to write a Simple App with Just a UIWebView in it which displays your Page. If you don't know how to do a iOS App there are many Sites out there which can help you just Google for "iOS App + UIWebView".