tag with close button

by Bhavik Bamania

HTML

<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<br/>
Tags:
<span class="tag label tagitty-label">
  <span>Example Tag</span>
  <a><i class="remove fa fa-times"></i></a> 
</span>

CSS

/* adapted from http://maxwells.github.io/bootstrap-tags.html */
.tag {
  font-size: 14px;
  padding: .3em .4em .4em;
  margin: 0 .1em;
}
.tagitty-label {
  border-radius:0;
  background-color:#91872F;
}
.tag a {
  color: #bbb;
  cursor: pointer;
  position:relative;
}
.tag .remove {
  vertical-align: middle;
  top: 0;
}
.tag a .remove {
  color: #000;
  background-color:#ED7D31;
  padding: 6px;
}