Skip to main content
Public

Share visualization

Loading preview…

Shapes with SVG and CSS

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Shapes with SVG and CSS

2
Dduckmammal
Last edited Nov 20, 2020
Created on Nov 20, 2020
Forked from HTML Starter

This example shows how SVG shapes and CSS styling can be combined in a minimal HTML page. A circle and rectangle are drawn with default black fills, while a second group of the same shapes uses inline SVG attributes to apply purple fills and thick black strokes. List items are styled with CSS classes, demonstrating color and background changes. The page also includes a JavaScript console log statement. The code uses raw SVG elements, CSS rules in an external stylesheet, and vanilla JavaScript, with no additional libraries or frameworks.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed