JS in HTML
✓ Published0🌍 Public
This example displays a large centered "Hello HTML" message using CSS styling and demonstrates how to integrate D3.js and modular JavaScript into a basic HTML page. The body text is styled with a 13em font size and centered alignment via CSS. The page loads D3 v7 from a CDN and executes an inline script that logs a greeting to the console, using the `console.log` API and an ES module export. The `index.js` imports a named export from `something.js`, which also logs the D3 object to demonstrate the library’s global availability.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed