I often see people having html buttons for links in stack overflow?

how do I visually show a button on stack overflow how do <button><a href="www.jsfiddle.com">link to fiddle</a></button>

  • 8
    Don't. That's invalid formatting and not what the syntax is there for. If you're still curious, it's the <kbd> element, which is reserved for user input, not for making links look like buttons.
    – animuson StaffMod
    Commented Feb 13, 2014 at 18:42
  • Matthew Harwood, please don't do that as it was not meant to ;)
    – user251936
    Commented Feb 13, 2014 at 21:55

1 Answer 1


Are you referring to this Click here?

<kbd>[TEXT HERE](URL HERE)</kbd>

However as recommended by animuson in a comment to your post, if you are intending to use this for links in a post, avoid doing so as it can be ambiguous to a user. The tag is to be used to showcase user input. Users may not be aware that it is a clickable button. try to always use the [TEXT](URL) tool to provide a hyperlink for the user.

  • Should I not uses this for links to jsfiddles? like @animuson stated above? Marking correct asap Commented Feb 13, 2014 at 18:47
  • 2
    Take the advice of Animuson very serious, please.
    – rene
    Commented Feb 13, 2014 at 18:47
  • 1
    Please follow animuson's recommendation. Reserve the use of this to showcase keyboard input; however, I have seen people use this to create buttons in their profiles.
    – Anil
    Commented Feb 13, 2014 at 18:47
  • 1
    @MatthewHarwood, yes, try to stay away from using it for external link. Just use a simple link using the [text](URL) tool. It will also read better instead of having random buttons inserted in your text.
    – Anil
    Commented Feb 13, 2014 at 18:48
  • 3
    @MatthewHarwood See Stricter <kbd> usage rules
    – animuson StaffMod
    Commented Feb 13, 2014 at 18:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .