• Theory
  • Theory

Challenge: Pyramids

Draw a landscape with pyramids using rect and polygon.

Colors: skyblue, yellow, goldenrod, darkgoldenrod.

All of the values are multiples of ten.

Don’t forget that it’s important in SVG to close tags: for example, <rect/> or <rect></rect>. It impacts how the code is interpreted.

  • index.html
HTML
HTML

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Granny Muffin

Easy there, pal!

To access the An Introduction to SVG challenges in the SVG basics, you need to sign up and subscribe first.