Search code examples
asp.netxhtmlw3cweb-standards

Whole code of Asp.net page renders in a form tag is it W3C valid?


Whole code of Asp.net page renders in a form tag is it W3C valid to render everything in form tag?

<body>

  <form runat="server">

    remaining code.....

 </form>
</body>

Solution

  • Assuming you don't put another (non-runat="Server") form tag on this page, sure.

    (because nested forms are invalid)