2023-03-04 15:00:10 +00:00
|
|
|
>>> let langages = document.getElementById("langages")
|
|
|
|
>>> langages.style.color = "red"
|
|
|
|
>>> let item1 = langages.children[0]
|
2023-02-23 17:24:09 +00:00
|
|
|
>>> item1
|
|
|
|
>>> item1.innerHTML = 'HTML5'
|
|
|
|
>>> let item3 = document.createElement("li")
|
2023-03-04 15:00:10 +00:00
|
|
|
>>> langages.appendChild(item3)
|
2023-02-23 17:24:09 +00:00
|
|
|
>>> item3.innerHTML = "Javascript"
|