---
title: "Discussion on \"Button type button\" | Hashnode"
description: "Discussion on \"Button type button\". I’ve seen <button type=”button”> before but thought that you never need it. Turns out you do…\nIf you have a button on the page then by default its type is button.\nBut if that button is inside a form then by default its type is submit.\nIt makes sense...."
url: "https://hashnode.com/posts/button-type-button/6742ea5e10e95e23aa7d704f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Button type button](https://blog.nicm42.me.uk/button-type-button?utm_source=hashnode&utm_medium=feed)

I’ve seen <button type=”button”> before but thought that you never need it. Turns out you do… If you have a button on the page then by default its type is button. But if that button is inside a form then by default its type is submit. It makes sense....

Nov 24, 2024 · 1 min read · blog.nicm42.me.uk  
Read the article

-   [#html](https://hashnode.com/tag/html)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

  
[View profile](https://hashnode.com/@nicm42)

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
