JavaScript function that takes a DOM document as a parameter and returns the number of tags in the document code example
Example: document get element by tag
var list = document.getElementsByTagName("UL")[0];
list.getElementsByTagName("LI")[0].innerHTML = "Milk";