html inner element <a> text code example Example: change innertext javascript element.innerText = "Hello World";