< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >
Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class
The <button> tag defines a versatile button element for XHTML forms.
- Firefox 1, 2
- Internet Explorer 4, 5, 6, 7
- Mozilla 1
- Netscape 6, 7, 8
- Opera 6, 7, 8, 9
- Safari 1, 2
- HTML 4.0
- XHTML 1.0
Forms Module, Intrinsic Events Module
CDATA. Encloses the HTML element that is the input button, usually an image. The following tags are valid within the <button> tag:
a, abbr, acronym, address, applet, b, basefont, bdo, big, blockquote, br, button, center, cite, code, dfn, dir, div, dl, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, i, iframe, img, input, isindex, kbd, label, map, menu, noframes, noscript, object, ol, p, pre, q, s, samp, script, select, small, span, strike, strong, sub, sup, table, textarea, tt, u, ul, var
The <button> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var
- button with text
<form>
View
<button type="submit" name="button1" value="clicked">
Submit
</button>
</form>
<button> Special Notes
- Watch the whitespace in this element. Some browsers include it in the button while others don't. So you might end up with designs that don't look as you expect.
More <button> Information
< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >
Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

