Skip to main content
100%

Making a Smiley Face with CSS

✓ Published1🌍 Public
Jjjacobatandover
Last edited Jul 3, 2021
Created on Jul 2, 2021
Forked from HTML Starter

This example illustrates the classic "hello world" of graphics programming: a yellow circle adorned with two smaller black circles to form a smiley face, rendered as an inline SVG. The page uses plain HTML and JavaScript, with CSS setting the body margin to zero and hiding overflow. The visual is constructed entirely from three `<circle>` elements whose positions, radii, and colors are hardcoded within the SVG tags, demonstrating basic SVG markup. A console statement logs a greeting, hinting at future JavaScript interactions.

AI-generated description

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

See also React Starter.

Half way towards a smiley face

MIT Licensed

Similar vizzes