document get element by tag

JavaScript
var list = document.getElementsByTagName("UL")[0];
list.getElementsByTagName("LI")[0].innerHTML = "Milk";
Source

Also in JavaScript: