HTML Form | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

HTML Form

I ran this code in Chrome and I found the follows, I need to add word Name in the name cell, also I need to add email and message in the cells below. I need when I press the submit button to direct the page to another page. <form> <input name="name" type="text" /><br /> <input name="email" type="email"/><br/> <textarea name="message"></textarea> <input type="submit" value="SEND" class="submit"/> </form>

29th Jul 2018, 1:16 PM
Sherif Massoud
Sherif Massoud - avatar
1 Answer
0
Use action attribute like this <form action="website name goes here" target = "_blank"> Thus when user will press submit , it will redirect user to website you mention in action attribute. target attribute is used to open that website in new tab. Hope this helps ☺️☺️.
30th Jul 2018, 8:40 AM
Meet Mehta
Meet Mehta - avatar