I have done many regular websites, but am building my first mobile page using the IUI-js interface because it is pretty simple and easy to understand. A regular website would just be saved as index.html and then uploaded to my hosting service, however what file format would I save my mobile page up for uploading to my hosing service? The computer knows to go to the homepage because it is saved as index.html.... but how would a mobile phone or tablet know to go to my mobile html and not my regular index? Hopefully this is a simple question to answer such as the correct file format.... Thanks. P.S. I know mobile websites are m.domain.com With the difference being the m. so does that have anything to do with it?
On the main website there is just a simple redirection to the mobile version (m.example.com). There is either a JS code that check the screen width or the redirection is based on the user-agent (each browser provides information about itself and the operating system it is running on).
You should have the same HTML page, however the style should be displayed differently. Take the site in my sig. When you resize it, the layout changes to fit a mobile view. This is done using conditional CSS - A media query. I made a large post on this earlier, so you can take a look at that. https://forums.digitalpoint.com/thr...-and-responsive-design.2657812/#post-18590694