brendan
6
Q:

html text box

<!-- A <textarea> tag (better for multi-line text)-->
<textarea cols="4" rows="5">
Some text inside the text box.  
See https://www.w3schools.com/tags/tag_textarea.asp
</textarea>

<!-- An <input> type text tag (better for single-line text) -->
<input type="text" value="Some text inside the text box">
<!-- See https://www.w3schools.com/tags/att_input_type_text.asp -->

<!-- Using contenteditable (not recommended) -->
<p contenteditable="true">Some text inside the text box</p>
<!-- See https://www.w3schools.com/tags/att_global_contenteditable.asp -->
3
//HTML Textbox w/Getting Javascript Input:
<script>
  function getTextBox(){
    var k = document.getElemntById('myTextBox').value
    alert(k)
  }
</script>
<input type="text" id="myTextBox">
<button onclick="getTextBox()">Get Text Input</button>
2
<label for="name">Name:</label>
  <input type="text" id="name"><br><br>
5
<input type="email" name="name" id="id" placeholder="[email protected]" />
5
<input type="radio">Hi</input>
3
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
1

New to Communities?

Join the community