Pretty simple question: is it ok to have a form in html, for example,
<form class="spacer" action="" method="post"> <input class="submit" type="submit" value="Submit" /> </form>
I searched on google but didn't find anything?
Yes it is.
There is no requirement that a <form> contain any elements, <input> or otherwise. (However, most useful forms usually contain a "submit" input and other relevant elements ...)
<form>
<input>
Happy coding.
Source: https://habr.com/ru/post/900991/More articles:What is the definition of "top-level form" in Racket - racketShadow does not appear for UIView using CALayer - iosWhat is the Python equivalent of Perlbrew? - pythonPython https client - pythonI get a performance penalty when mixing SIMD instructions and multithreading - performanceList of all sequences in HsqlDB 1.8 - javaPython optparse, defaults and explicit parameters - pythonRecord audio and video using AVFoundation frame by frame - iosAutoIncrement fields other than Id in grails - grailslistBox.ItemContainerGenerator.ContainerFromItem () returns null to the new item added to the list - wpfAll Articles