Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 9
    You don't need the span at all with bootstrap. Just move the whole class part to the <a> and you will have a link button. eg <a href="#register" class="btn btn-default btn-lg">Subscribe</a> Commented Dec 26, 2014 at 9:03
  • The original poster asked if it's possible to place a button inside an anchor tag. The accepted answer notes that it goes against W3C specs to place an <a> inside an <a>. I think that's why golbeltri was demonstrating styling a <span> as a button. Commented May 3, 2015 at 7:49
  • This makes sense if there is other content inside the <a>, which is part of the link, but not styled like a button. For example, any click within a div (image, background, text, etc) goes to a link, but only the span looks like a button. Commented Sep 3, 2015 at 19:23