|
|
|
@ -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>
|
|
|
|
@ -227,4 +228,4 @@ Check the requirement of this project from both images(jpg and gif). All the dat
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
[<< Day 21](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/21_Day/21_day_dom.md) | [Day 23 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/23_Day/23_day_dom_day_3.md)
|
|
|
|
|
[<< Day 21](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/21_Day/21_day_dom.md) | [Day 23 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/23_Day/23_day_dom_day_3.md)
|
|
|
|
|