HTMLKeep
← File guides

Why does my HTML page lose its CSS or images on iPad?

A browser resolves local file references from the folder that contains the page. If you send only index.html, the iPad can show its headings while the stylesheet, pictures or button code are still on your computer. Send the built webpage and its asset folders together as a ZIP.

Follow one reference through the project

Suppose a lesson contains these three files:

lesson/
  index.html
  styles/main.css
  images/map.png

Inside index.html, a stylesheet reference of styles/main.css should lead to the file shown above. Inside main.css, an image reference of ../images/map.png starts from the styles folder. Moving all three files into a single folder changes both relationships.

Pack and test the finished page

  1. On the computer, open the exported lesson and check that the map appears.
  2. Compress the project folder with its subfolders intact. For a project with a build step, use the exported static files and their assets.
  3. Send that ZIP to the iPad. Import it into HTMLKeep and open the entry page.
  4. Check the map and a link to the next lesson. If one image is missing, compare its exact filename, capitalization and extension with the reference in the page.

A path beginning with a drive letter or your computer's home folder needs to become a project-relative path. If everything looks right until you disconnect from Wi-Fi, investigate which parts of the page need the network.

If the folder is already on your iPhone, touch and hold it in Files and tap Compress. Apple’s Files guide shows where to find that command.

I already have a ZIP. How do I open its webpage on iPad?

To inspect the archive in Files, tap the ZIP to expand it and look for the starting page. To browse the project in HTMLKeep, share the original ZIP directly from Files. Let the project open, then use the viewer’s file list if you want a different HTML entry. If the archive contains no HTML or HTM file, ask the sender for the finished web export. If you received just one HTML attachment instead, open it directly from Files.

Get HTMLKeep on the App Store