Interactive online courses HTML Academy
2026-03-09 10:59 Diff

We already covered how to clone elements, but we have not yet tried inserting several copies on a page.

Let’s start a loop, and in the body of this loop clone a template, change the contents of the child element, and subsequently insert copies on the page.

This is similar to using a stencil for drawing. We apply the stencil many times, and it guides our drawing as we need it. We work with a single stencil throughout the process.