Fork of HTML Starter
✓ Published0🌍 Public
This example demonstrates a minimal static page that displays the model name of the first car in a hardcoded array. It shows how to structure an HTML file with embedded CSS and JavaScript, alongside separate ES6 modules for data and logic. The page uses plain DOM APIs like `getElementById` and `textContent` in `index.js` to update the `#message-element` preformatted block. The `cars.js` file exports a const array of objects containing brand, model, and price fields, with the displayed value sourced from that dataset.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed