html-validation

Is action really required on forms?

做~自己de王妃 提交于 2019-11-26 14:40:21
Here it says it's required http://www.w3schools.com/tags/att_form_action.asp but I see that forms get submitted even if I don't specify an action attribute, and the form gets submitted to the current page which is exactly what I want. The requirement is only by standards . It is perfectly possible to do whatever you want on a page and not follow standards. Things may not display or work correctly if you do that, but likely they will. The goal is to follow them, and the idea is that if you follow them, your page will always work; you don't have to worry about anything. Yes, the form is required

w3c html validation error - Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections

主宰稳场 提交于 2019-11-26 12:45:16
问题 I am getting a warning when I try to validate my page in http://validator.w3.org : Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. My code is as below : <section id=\"slider-wrapper-new\"> <div class=\"slider-container-new\"> // some code.. </div> </section> How can I remove this error ? Do I compulsory need to add h1 - h6 tags inside section heading ? 回答1: Either: Add a heading ( h1 , ..., h6 ) tag to your section element. Replace your

Is action really required on forms?

一笑奈何 提交于 2019-11-26 03:58:48
问题 Here it says it\'s required http://www.w3schools.com/tags/att_form_action.asp but I see that forms get submitted even if I don\'t specify an action attribute, and the form gets submitted to the current page which is exactly what I want. 回答1: The requirement is only by standards . It is perfectly possible to do whatever you want on a page and not follow standards. Things may not display or work correctly if you do that, but likely they will. The goal is to follow them, and the idea is that if