🌍 Public
Viewing a saved revision (read-only)
641e3b638072423d9689550e59631774
HTML Starter
This example demonstrates a minimal HTML page that imports a static dataset and displays a car name on screen. It shows how an ES module exports an array of car objects, which index.js imports and uses to update the text content of a `<pre>` element via `document.getElementById`. The page uses plain HTML with inline CSS for styling, and depends on a bundler like Vite or Webpack to resolve the module imports and serve `bundle.js`. The data lives in a separate `cars.js` file, parsed from a JSON string.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.