How do you create a button using Bootstrap?
Experience Level: Junior
Tags: Bootstrap 4
Answer
In order to create a button using Bootstap, place a tag <button>
or <a>
or <input>
to the web page source code and give it class btn
.
Like this:
<button class="btn">Click me</button>
<a class="btn">Click me</a>
<input type="button" class="btn" value="Click me" />
<input type="reset" class="btn" value="Click me to Reset" />
<input type="submit" class="btn" value="Click me to Submit" />
Related Bootstrap job interview questions
What sizes of Bootstrap buttons do you know and do you use them in a web page?
Bootstrap 4 JuniorWhat types of Bootstrap buttons do you know and how do you create them in a page?
Bootstrap 4 JuniorHow can you find out if a web application uses Bootstrap or not?
Bootstrap 4 JuniorHow do you install Bootstrap to your web application?
Bootstrap 4 Junior