Skip to main content
100%

D3.js

✓ Published2🌍 Public
HHaileabGH
Last edited Nov 30, 2021
Created on Nov 30, 2021
Forked from D3.js

This example demonstrates a minimal HTML page that uses JavaScript to dynamically change the color of all paragraph elements to blue. The code retrieves paragraphs using the Document Object Model (DOM) API `document.getElementsByTagName`, iterates through them, and applies an inline CSS style property via `style.setProperty`. It relies on standard browser APIs rather than external libraries, with the script loaded asynchronously through the `defer` attribute in the HTML markup. The page contains no visual data visualization, focusing instead on basic DOM manipulation and styling.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes