Three ingredients
HTML describes the content and its structure. CSS controls the layout and visual style. JavaScript adds behavior such as the diagram on the homepage and the quiz in the scaling note.
All three can be served as static files. This site uses relative links and local assets, so its folder can be uploaded to either hosting platform without a build step.
Two ways to host the same files
| Question | Amazon S3 website | Cloudflare Pages |
|---|---|---|
| Where do files go? | Objects in a bucket | Assets in a Pages deployment |
| What opens first? | The configured index document | The root index.html page |
| Who manages delivery? | AWS manages the storage service | Cloudflare manages its global network |
Follow the request
When a visitor opens this page, the host returns HTML. The browser then requests the shared stylesheet and JavaScript. A link to another page triggers another navigation. Keeping the directory structure intact lets those relative paths continue working.
Hosting and application logic are separate concerns. A static host serves the files; it does not run a PHP application or a database for this website.