2022-2023/1NSI/08_Interaction_web/script/1E_index.js

9 lines
277 B
JavaScript

>>> let langages = document.getElementById("langages")
>>> langages.style.color = "red"
>>> let item1 = langages.children[0]
>>> item1
>>> item1.innerHTML = 'HTML5'
>>> let item3 = document.createElement("li")
>>> langages.appendChild(item3)
>>> item3.innerHTML = "Javascript"