value = text html code example
Example 1: default value input
<input type="text" id="fname" name="fname" value="John">
Example 2: js html tag valu
var value = document.getElementById("theInput").innerHTML;
<input type="text" id="fname" name="fname" value="John">
var value = document.getElementById("theInput").innerHTML;