dom day2 fix

added textContent to the example for visible output
pull/67/head
Patrick Njuguna 6 years ago committed by GitHub
parent ca2a1c84c7
commit 538c693f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,6 +115,7 @@ To see a created element on the HTML document we should append it to the parent
title = document.createElement('h1')
title.className = 'title'
title.style.fontSize = '24px'
title.textContent = i
document.body.appendChild(title)
}
</script>

Loading…
Cancel
Save