単なるボタンとして使う場合は、type="button"を指定する。 省略すると、type="submit"で解釈されsubmitされる。 <form> <!-- ただのボタンのため、submitされない。 --> <button type="button">ボタン</button> <!-- type="submit"と解釈されsubmitされる。--> <button>ボタン</button> </form> Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing