btn
class of Twitter-bootstrap can be used with any of the following html elements.
with both type="button" and type="submit"
Below are examples of all possible use cases of btn
class
<a class="btn" href="#" role="button">Link</a>
<button class="btn" type="submit">Button</button>
<input class="btn" type="button" value="Input">
<input class="btn" type="submit" value="Submit">
Although btn
class can used in any of the above four ways but it is highly recommend using the <button>
element whenever possible
Image of the above code is attached below