Answers for "create input field html"

7

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 -->
Posted by: Guest on October-19-2020
1

intput field submit button

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
Posted by: Guest on August-08-2020

Browse Popular Code Answers by Language