Making buttons - <button> or <div> ?

Posted by user246114 on Stack Overflow See other posts from Stack Overflow or by user246114
Published on 2010-05-05T22:38:55Z Indexed on 2010/05/05 22:48 UTC
Read the original article Hit count: 142

Filed under:

Hi,

I'm wondering what html element to use for buttons on a web page - I'd like to style my 'buttons' like twitter does. For example:

http://twitter.com/twitter

the "more" button at the bottom of the tweet listing - is that a <button> element, or a <div> element? I'd like to know which to use. I think for either <button> or <div> we can supply rollover states and all that stuff to make it look pleasant?

Thanks

© Stack Overflow or respective owner

Related posts about html