4

Is it a bad practice to have something like this?:

<form method="post">

<form method="post">
</form>

</form>
TylerH
  • 20,799
  • 66
  • 75
  • 101
alexchenco
  • 53,565
  • 76
  • 241
  • 413

3 Answers3

4

Yes. Very much so. And it won't work properly. I would restructure the page to make sure it doesn't have it nested..

M.R.
  • 4,737
  • 3
  • 37
  • 81
1

It is completely invalid markup - it will break in various painful, interesting and different ways in various browsers. Is it bad practice to write invalid HTML? (hint: yes, it's a Bad Idea) Even if you don't give a rat's ass about valid HTML, is it bad practice to write HTML which is almost certain to give your users incorrect behavior? (hint: yes, it's a Bad Idea, unless you passionately hate your users)

Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222
0

I'm pretty sure that will never work as expected properly. 100% bad practice as far as I know / am concerned.

stevecomrie
  • 2,423
  • 20
  • 28