Showing posts with label accessibility. Show all posts
Showing posts with label accessibility. Show all posts

Tuesday, January 7, 2014

input type=“submit” Vs button tag are they interchangeable?

Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to "image", but the BUTTON element type allows content.
So for functionnality only they're interchangeable!
(Don't forget you have to use type="submit" with button too.)