I'm experiencing some issues with my Bootstrap settings as I'm still learning how to use Bootstrap. I attempted to design a button using Bootstrap and wanted to add an icon to it, but unfortunately, I couldn't get it to work. Despite trying numerous tutorials and examples provided on the Bootstrap page, I haven't been successful. Can anyone help me identify where I went wrong? Thank you in advance! :)
Here is the code snippet:
{% load static %}
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="#">Hey!!!, {{user.username}}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Registration</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">Log Out</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'login' %}">My Account</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container bordere" >
<div class="mt-2">
<a href="{% url 'authuser' %}"> <button class="btn btn-primary my-2 my-sm-0" type="button">Add Items</button></a>
<button class="btn btn-primary my-2 my-sm-0 " type="submit"><i class="fas fa-1x fa-search"> </i> View Details</button>
<button class="btn btn-primary my-2 my-sm-0" type="submit">Download Report</button>
<button class="btn btn-primary my-2 my-sm-0" type="submit">Email Report</button>
<button class="btn btn-primary my-2 my-sm-0" type="submit">Create Bill</button>
<button class="btn btn-primary my-2 my-sm-0" type="submit">Modify Data</button>
<button type="button" class="btn btn-danger">
Delete<span class="glyphicon glyphicon-remove-sign"></span>
</button>
</div>
<div class="row mb-2 mt-2">
<div class="col-2 bordere miniheight">
clo 1
</div>
<div class="col-10 bordere">
clo 2
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/fontawesome/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
Consider checking out this working example: https://i.sstatic.net/duoMk.png