Skip to main content

One post tagged with "HTML"

View All Tags

Why Your HTML Preview Is Missing CSS, Images or JavaScript

· 13 min read
Charly P Abraham
Co-Founder, Phoenix Code

An HTML file can link to CSS, images, and JavaScript without copying those files into it. If a preview is missing styles or images, first check the file paths and the preview permissions. If a button does nothing, check whether scripts are allowed. This guide also helps when CSS is not loading, HTML images are not showing, or JavaScript is not working in HTML.

The examples below use Phoenix HTML Viewer. HTML and CSS written inside the document work by default. Hosted files and JavaScript each need permission in the Viewer. The Viewer reads the HTML file you open; it does not import the files beside it.