Skip to main content
100%

SVG

✓ Published0🌍 Public
JJM-Koo
Last edited Jul 8, 2022
Created on Jul 8, 2022

This example demonstrates the difference between HTML and SVG rendering by displaying a large message using two distinct technologies. The page shows the text "Hello HTML!" styled with CSS inside a standard div element, while a script uses D3.js to construct an SVG container and render the same message as scalable vector graphics. The code relies on the D3 selection and append APIs to create SVG text elements, illustrating how browser-native HTML and declarative SVG both handle text display. The CSS class "message" controls font size and alignment, while the JavaScript portion works with the SVG namespace.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes