Reputation: 1665
I am starting with bootstrap and trying to add a glyphicon
as my button, seems to me like I have followed the instructions on bootstrap documentation to do so but it just does not work
My code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Game</title>
<!--bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<!--jQuery-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
</head>
<body>
<section>
<button type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-star"></span>
</button>
</section>
<script src="game.js"></script>
</body>
</html>
What is it that I am missing out?
Upvotes: 0
Views: 310
Reputation: 6967
Please reference the Bootstrap 4 Migration documents:
https://getbootstrap.com/docs/4.0/migration/#components
Glyphicons are not loading because they are no longer part of the Bootstrap CSS Framework.
Upvotes: 1