This happened to me using Chrome because I had a form in shape . It seems like Chrome just removed the <form> open and close tag because my form was in a different form. When I moved one form outside the other, the <form> tags were displayed in html, as intended.
Crackerman also received this in his answer.
It is difficult to give a direct solution without seeing your full html, but I assume this is your problem - you need to make sure that your form is not in another form. A really simple example to illustrate this:
The form is in another form , please note if you run this code in Chrome and check <form id = "form2"> does not appear :
<html> <head></head> <body> <form id="form1"> <div>form within a form</div> <form id="form2"> <input type="text" placeholder="name" /><br/> <input type="text" placeholder="title" /> </form> </form> </body> </html>
If you move form2 outside of form1, run the code in Chrome and check , then the form <form id = "form2"> is displayed :
<html> <head></head> <body> <form id="form1"> <div>form2 moved outside of form1</div> </form> <form id="form2"> <input type="text" placeholder="name" /><br/> <input type="text" placeholder="title" /> </form> </body> </html>
Michael stalcup
source share