Welcome to MSDN Blogs Sign in | Join | Help

BenCon's WebLog

D2D development blog
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.

Posted: Friday, February 27, 2004 1:43 PM by BenCon
Filed under:

Comments

Chad Humphries said:

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.
# February 27, 2004 2:08 PM

Jerry Pisk said:

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.
# February 27, 2004 9:28 PM

Nick said:

that looks like the code you would use to make a button in a mark-up language im creating thats used to make websites.
# March 22, 2004 3:31 PM

Aaron said:

Why are you using a table inside of the <button> tag? You get the same results with <button>Button text</button>
# April 27, 2004 8:31 AM

Jackson Capper said:

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.

# March 12, 2007 2:11 AM
New Comments to this post are disabled
Page view tracker