The button tag
One of the more interesting tags that I have seen is the <BUTTON> tag. Most people have never seen this, and when they see how whidbey lets you edit them like a normal container, the first instinct is to say "What is up with that?".
Well, these buttons can have content inside them. You can put an image or a table in them if you want to. And this lets you do cool things like this:
<BUTTON>
<TABLE>
<TR><TD><IMG /></TD></TR>
<TR><TD>Button Text</TD></TR>
</TABLE>
</BUTTON>
Isn't this cool? I like it. And rather than typing it out, in whidbey you can just click into an empty <BUTTON>, do insert -> table, and edit everything right there. And <BUTTON> is XHTML compliant, too.
Has anybody out there used these buttons much? What do people think of them?
P.S. This post was written using the Whidbey HTML designer.
Comments
- Anonymous
February 27, 2004
I've used them in a few internal intranet apps. Sometimes we had issues until we locked down clients to specific browsers.
I do however really enjoy this way of doing things. - Anonymous
February 27, 2004
I use them to include images in buttons. And I'm sorry for those poor souls that only know what Visual Studio toolbar offers, button tag has been part of HTML for a very long time now. - Anonymous
March 22, 2004
that looks like the code you would use to make a button in a mark-up language im creating thats used to make websites. - Anonymous
April 27, 2004
Why are you using a table inside of the <button> tag? You get the same results with <button>Button text</button> - Anonymous
March 11, 2007
quote: "Why are you using a table inside of the <button> tag? You get the same results with <button>Button text</button>" Chad Humphries was demonstrating the potential use of embedded markup inside the button tag, not how to add a label.