Web development · The DOM and events

Building elements from data

A shop's product list comes from data, not typed HTML: the script makes one element per item and puts each into the page.