This question Close Button for Twitter Bootstrap3 Tabs shows how to create a Bootstrap3 tab with a close button in it:
<li class="active"><a href="#">Tab 1 <button><i class="fa fa-times"></i></button></a>
This works for me (I'm using glyphicons instead of font awesome) but then i read here Can I nest a <button> element inside an <a> using HTML5? that it's not acceptable to have a <button>
inside of an <a>
tag.
What is the right way to add a button to a bootstrap tab if it's not allowed to be inside the <a>
element?
This JSFiddle (not mine) http://jsfiddle.net/vinodlouis/pb6EM/1/ shows the functionality I am going for with the little x button on the tabs.