Skip to main content
100%

Smiley Face Part I

✓ Published1🌍 Public
MManfredChen
Last edited Nov 26, 2021
Created on Nov 23, 2021
Forked from HTML Starter

A static smiley face rendered with SVG, composed of a yellow circle for the head and two black circles for the eyes. The code uses plain JavaScript embedded in an HTML page, making no use of React despite importing it in the separate `index.js` file, which only logs the React object. The SVG elements are positioned with explicit pixel coordinates (e.g., `cx="480"`, `cy="250"`) and styled via attributes like `fill` and `stroke-width`. The rendering relies directly on SVG’s native circle elements rather than a charting library.

AI-generated description

Halfway toward a Smiley Face A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes