W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2018

Re: What is the difference between <input type="button" /> and <button></button>

From: Aron Bergman <bathingrad@gmail.com>
Date: Mon, 16 Apr 2018 14:07:41 +0200
Message-ID: <CALdbZh81gKuzv-v=HkjHs3wCXYYzCVBxXFUSquZGWEQw-P_PSw@mail.gmail.com>
To: Internet LifeHacks <nathashakck@gmail.com>
Cc: html-tidy@w3.org
2018-04-02 18:05 GMT+02:00 Internet LifeHacks <nathashakck@gmail.com>:

> Hi All
> When i am coding with HTML, When a button is required based on my mood i
> choose between  <input type="button" /> or <button></button> . I am yet to
> find a reason to not use of one to another or at least a best practice of
> using which one. So I would like to know from you all , which one you are
> using and why ?
> Also if possible please anyone explain what situation to use which one of
> these and whether there is a possible performance hit dependencies and all.
> Thanks & Regards
> Nathasha
> http://bestfragranceformen.com

I don't think that this mailing list is supposed to answer questions about
HTML in general, Google is your friend regarding these kinds of questions.
Searching for html type=button vs button
<https://www.google.com/search?q=html+type%3Dbutton+vs+button> returned this
StackOverflow answer

Received on Monday, 16 April 2018 14:04:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 16 April 2018 14:05:11 UTC