Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

News

My Friends

My Links

Permanent Posts

Portuguese Communities

The HTML <button> Tag

Some of you may not know about the HTML <button> tag. It is part of the W3C Standard for HTML 4.01 (http://www.w3.org/TR/html401/interact/forms.html#h-17.5) and has an additional feature that is not available with the ordinary <input type="button"> tag: the ability to add structured content to a button, such as images.

You can see an example here:

Otherwise, it supports all of the normal properties for an HTML element, like an <input> it must be contained in a <form> and may include the name and value attributes, which are sent on form submits.

It is supported on IE 5+, Opera, Firefox 2+, Safari and Chrome.

Posted: Nov 07 2008, 04:01 PM by Ricardo Peres | with 1 comment(s)
Filed under:

Comments

doradorazhang said:

Very useful. Thanks for sharing

# March 1, 2011 11:46 PM