The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What is the diff between <button> tag & <input type"button">

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #22849


    Can you explain me What is the difference between <button> tag & <input type"button">.
    Those two things are performing the same. Then Why we need two things in HTML?


    you can apply background images to buttons… and you cant inputs haha.
    thats all the difference i need to know.


    I always prefer the <input>, since the <button> shows trouble sending information when it comes to IE in general. Although there’s a javascript that’ll fix it, I wouldn’t trust it to have the job done. And it’s easy to have a gradient background on an <input>, but if you want to style it like a <button> – you’ve got a challenge (especially cross browsers).

    I do believe it was Eric Meyer who said something like: Because browsers usually take somewhat controll over <input> elements, I don’t give them much style.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.