9 lines
282 B
JavaScript
9 lines
282 B
JavaScript
>>> let languages = document.getElementById("languages")
|
|
>>> languages.style.color = "red"
|
|
>>> let item1 = languages.children[0]
|
|
>>> item1
|
|
>>> item1.innerHTML = 'HTML5'
|
|
>>> let item3 = document.createElement("li")
|
|
>>> languages.appendChild(item3)
|
|
>>> item3.innerHTML = "Javascript"
|