how to give value to a created html div javascript code example Example: javascript set text of div document.getElementById("content").innerHTML = "whatever";