Build DOM elements with data.