Add javascript variable to html tag code example Example: js variable html <div onload="document.innerHTML(name + ' is ' + age)">