i have a value for input type in html code example
Example 1: input types html
<form>
<input type="button">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="datetime-local">
<input type="email">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="radio">
<input type="range">
<input type="reset">
<input type="search">
<input type="submit">
<input type="tel">
<input type="text">
<input type="time">
<input type="url">
<input type="week">
</form>
Example 2: html value attribute
<input type="text" value="I was already filled" id="textInput">
<script>
var input = document.getElementById('textInput');
var value = input.value;
input.value = "i was changed";
</script>