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:

<TR><TD><IMG /></TD></TR>
<TR><TD>Button Text</TD></TR>

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 (5)

  1. Anonymous says:

    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.

  2. Anonymous says:

    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.

  3. Anonymous says:

    that looks like the code you would use to make a button in a mark-up language im creating thats used to make websites.

  4. Anonymous says:

    Why are you using a table inside of the <button> tag? You get the same results with <button>Button text</button>

  5. Anonymous says:

    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.