hey folks,
i needed to know the difference between, input type=“button” and <button></button> tag
The
<input type="button" value="Submit" />
or
<input type="submit" value="Submit" />
ways have to look just like that, there’s no flexibility with the value other than text.
With button you get a little more freedom. You can say do something like this:
<button name="submit" value="submit" type="submit">
Send<img src="send.png" alt="send" />
</button>
However, you can run into problems with the <button> tag in IE. See here for a little more on IE issues. Also, here’s some [URL=“http://www.w3.org/TR/html401/interact/forms.html#h-17.5”]technical jargon from W3.org
Using <button> allows you to use HTML tags along with CSS to style parts of the text that the button displays - for example making one word on the button bold text.
the only reason i m switching my php pages’s input type button to button tag is to use css. for active state.