How to add text field in html and have send button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to add text field in html and have send button

pls help

9th Jun 2017, 1:07 AM
MR UNKNOWN
MR UNKNOWN - avatar
13 Answers
+ 3
thanks
9th Jun 2017, 1:24 AM
MR UNKNOWN
MR UNKNOWN - avatar
+ 2
First u will need to put this two items inside a form like: <form action="page.html" method="post" <!--- or GET if u want----> > Your namee: <input type="text" name="text-name"><br/> <submit value="send"> <!-- u can use <button> too ---> </form> if u need, search on google for forms html 5
9th Jun 2017, 1:19 AM
Juliano Ventola
Juliano Ventola - avatar
+ 2
how to add button send
9th Jun 2017, 1:29 AM
MR UNKNOWN
MR UNKNOWN - avatar
+ 2
thanks
9th Jun 2017, 1:44 AM
MR UNKNOWN
MR UNKNOWN - avatar
+ 2
thanks
9th Jun 2017, 4:53 AM
MR UNKNOWN
MR UNKNOWN - avatar
+ 2
how can adjust the size of text area ?
9th Jun 2017, 4:53 AM
MR UNKNOWN
MR UNKNOWN - avatar
+ 1
If u want a multiple lines is another tag type="textarea"
9th Jun 2017, 4:56 AM
Juliano Ventola
Juliano Ventola - avatar
+ 1
u can use form tag for this
9th Jun 2017, 8:19 AM
zeeshan javed
zeeshan javed - avatar
+ 1
First u will need to put this two items inside a form
10th Jun 2017, 11:10 PM
Костя Бекренёв
Костя Бекренёв - avatar
+ 1
help
13th Jun 2017, 9:53 PM
Liyaquat Siwan
Liyaquat Siwan - avatar
0
<input type="button" name="send" value="send"> or <input type="submit" name="send2" value="send">
9th Jun 2017, 1:33 AM
Juliano Ventola
Juliano Ventola - avatar
0
check this one <textarea name="message" placeholder="Message" required ></textarea> <input type="submit" value="SEND" class="submit" />
9th Jun 2017, 3:07 AM
Raz
Raz - avatar
0
I am not sure, but I guess u can put a width="50%", but the right way to do that is using css, Algo with width, but in css u put this once and all text change
9th Jun 2017, 4:55 AM
Juliano Ventola
Juliano Ventola - avatar