[whatwg] a and button
H=?iso-8859-1?B?5Q==?=kon Wium Lie
howcome at opera.com
Sun Oct 19 08:32:16 PDT 2008
Also sprach Kornel Lesinski:
> > It's not a link. I'd like for buttons to work as links so that they
> > take me to a page when I click on them.
>
> http://www.w3.org/TR/css3-ui/#appearance
>
> a {appearance: button} should do that.
Yes, that's a good proposal. However, it doesn't work in current browsers.
This markup works (in Mozilla, Opera, Webkit), and it looks pretty good:
<a href="http://www.w3.org/"><button>W3C</button></a>
So, I think HTML5 should describe it.
> In current browsers:
>
> <form method="get" action="url" style="display:inline"><button/><form>
>
> is very close to a link.
Yes, this works:
<form action="http://www.w3.org" style="display:inline"><button type="submit">W3C</button><form>
But, the markup isn't pretty. Also, I'd like for links to use the <a>
element.
-h&kon
Håkon Wium Lie CTO °þe®ª
howcome at opera.com http://people.opera.com/howcome
More information about the whatwg
mailing list