How to use collapse example in Bootstrap?

Today now in this post i would like to show you How to use collapse example in Bootstrap? Sometimes we need to collapse for display the large text with title. Always we like to use collapse for the data content. So if we think about how to use collapse in your project then it is very easy you need to just copy the bellow example and need to run in our local then we will find the result.

Now in this example i will provide bootstrap collapse example also with code so it pretty simple to use.


<html lang="en">
	<title>Bootstrap collapse example</title>  
    <link href="" rel="stylesheet">
    <script src=""></script>
    <script src=""></script>  

<a class="btn btn-danger" role="button" data-toggle="collapse" href="#collapseExp" aria-expanded="false" aria-controls="collapseExp">
  Link with href

<!-- collapse contain -->
<div class="collapse" id="collapseExp">
  <div class="well">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<!-- collapse contain end -->


Read Also : How to convert Object into Array in PHP?

Thanks for read. I hope it help you. For more you can follow us on facebook.


About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →