1.

Buttons - Bootstrap

Answer»

Responsive buttons can be built with the latest bootstrap 5.

Example:


Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
Link

 

btnBtn is used for setting the size and spacing of the button. <button type="button" class="btn">Welcome to InterviewBit</button>
btn-primaryBtn-primary is used to display buttons with a particular style for each class, for example, primary displays buttons with blue background. <button type="button" class="btn">InterviewBit</button>
btn-secondaryBtn-secondary is used to displays buttons with a grey background. <button type="button" class="btn-secondary">InterviewBit</button>
btn-successBtn-success displays button with green background. <button type="button" class="btn-success">InterviewBit</button>
btn-infoUsed for information on a topic like terms and conditions. <button type="button" class="btn-info">InterviewBit</button>
btn-warningBtn-warning is for the yellow background button. <button type="button" class="btn-warning">InterviewBit</button>
btn-dangerBtn-danger is for the red background button. <button type="button" class="btn-danger">InterviewBit</button>
btn-lightBtn-light is a light coloured button. <button type="button" class="btn-light">InterviewBit</button>
btn-darkBtn-dark is a dark coloured button (black). <button type="button" class="btn-dark">InterviewBit </button>
btn-linkBtn-link removes the outer border while maintaining the spacing set by the .btn class. <button type="button" class="btn-link">InterviewBit</button>
btn-outline-primaryA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline-primary">InterviewBit</button>
btn-outline-secondaryA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline-secondary">InterviewBit</button>
btn-outline-successA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline- success ">InterviewBit</button>
btn-outline-infoA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline- info ">InterviewBit</button>
btn-outline-warningA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline- warning "> InterviewBit</button>
btn-outline-dangerA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline- danger "> InterviewBit</button>
btn-outline-lightA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline-light">InterviewBit<button type="button" class="btn-outline-light">InterviewBit</button>outline</button>
btn-outline-darkA button variation to have outlined buttons instead of a solid background. <button type="button" class="btn-outline-light">InterviewBit</button>outline</button>



Discussion

No Comment Found