Is a <form> valid over a ?

前端 未结 5 1671
夕颜
夕颜 2021-01-18 18:59

Is the following valid HTML? What I am wondering about specifically is the location of the

tag.

5条回答
  •  借酒劲吻你
    2021-01-18 19:12

    It's not valid. I'm guessing you want to remove the default padding of the form element. This is better done through CSS:

    form {
        padding:0;
        margin:0;
    }
    

    or

    
    

    Your approach used to be very common to remove the default form padding (before CSS became popular). Now you should put the form tags outside the table. Preferrably you shouldn't even use a table here, but that's not the question, so I'll let it slide. ;)

提交回复
热议问题