SVG
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed