Skip to main content
100%

JS in HTML

✓ Published0🌍 Public
LLewis Ward
Last edited Jul 25, 2021
Created on Jul 22, 2021
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes