You can try this :
HTML Code:
<input type="text" value="java,php" data-role="tagsinput"></input>
For CSS, call these two files:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/dist/bootstrap-tagsinput.css">
For Javascript, call these two files:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js"></script>
The code will generate the result like you want.
solved I want to create a signin form that takes user interest in the form of tags just like that of the stack overflow (just a general idea)