---
title: "Discussion on \"The reason we specify type=\"button\" for button elements\" | Hashnode"
description: "Discussion on \"The reason we specify type=\"button\" for button elements\". If you didn't have experience with the web ~10 years or more ago it might be weird to use buttons on the web, especially when you don't want them to trigger form submits. You might have asked yourself: \"Why do I need to specify button type to be a bu..."
url: "https://hashnode.com/posts/the-reason-we-specify-typebutton-for-button-elements/64e0d21a74220ddd05843d28"
---

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

Discussion

# [The reason we specify type="button" for button elements](https://apisurfer.com/the-reason-we-specify-typebutton-for-button-elements?utm_source=hashnode&utm_medium=feed)

If you didn't have experience with the web ~10 years or more ago it might be weird to use buttons on the web, especially when you don't want them to trigger form submits. You might have asked yourself: "Why do I need to specify button type to be a bu...

Aug 19, 2023 · 1 min read · apisurfer.com  
Read the article

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

## Written by

[Luka Vidakovic](https://hashnode.com/@lvidakovic)

@lvidakovic · Croatia

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

Software eng. with expertise in web tech

Software engineer. Interested in small and efficient tech product teams and ambitious projects that move things forward.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
