1<!-- A <textarea> tag (better for multi-line text)-->
2<textarea cols="4" rows="5">
3Some text inside the text box.
4See https://www.w3schools.com/tags/tag_textarea.asp
5</textarea>
6
7<!-- An <input> type text tag (better for single-line text) -->
8<input type="text" value="Some text inside the text box">
9<!-- See https://www.w3schools.com/tags/att_input_type_text.asp -->
10
11<!-- Using contenteditable (not recommended) -->
12<p contenteditable="true">Some text inside the text box</p>
13<!-- See https://www.w3schools.com/tags/att_global_contenteditable.asp -->
1//HTML Textbox w/Getting Javascript Input:
2<script>
3 function getTextBox(){
4 var k = document.getElemntById('myTextBox').value
5 alert(k)
6 }
7</script>
8<input type="text" id="myTextBox">
9<button onclick="getTextBox()">Get Text Input</button>