get value of variable html code example
Example 1: variables in html
<var>This text will be italicized</var>
Example 2: js variable html
<div onload="document.innerHTML(name + ' is ' + age)">
<var>This text will be italicized</var>
<div onload="document.innerHTML(name + ' is ' + age)">