Skip to main content
100%

Fork of D3.js

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

This example demonstrates how to set the text color of all paragraph elements to blue using vanilla JavaScript’s `getElementsByTagName` and `style.setProperty`. The code iterates through the collection of paragraphs and applies the styling directly. It uses a minimal HTML page with a referenced `app.js` script, which executes with the `defer` attribute to ensure the DOM is fully parsed before manipulation. No external libraries or frameworks are involved.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes