I'm feeling a bit confused. I put together an HTML, CSS, and JS file to showcase a new design concept and decided to incorporate bootstrap 4 into it.
The structure of the folder is as follows:
- projectFolder
- index.html
- css
-- styles.css
- js
-- main.js
- img
I included the necessary links in the header:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
However, it wasn't effective. After verifying the link, I decided to copy and paste the template from the bootstrap 4 website with some additional Row's and Col's.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<link rel="stylesheet" href="/css/styles.css">
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1 class="display-5">Hello, world!</h1>
<div class="row">
<div class="col-md-4">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Assumenda nisi natus maxime quam nihil quae mollitia dicta
deserunt error alias.
</div>
<div class="col-md-4">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Assumenda nisi natus maxime quam nihil quae mollitia dicta
deserunt error alias.
</div>
<div class="col-md-4">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Assumenda nisi natus maxime quam nihil quae mollitia dicta
deserunt error alias.
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9b9a6b9b9acbbe7a3ba89f8e7f8ffe7f9">[email protected]</a>/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
</body>
</html>
Upon refreshing the page, it seems that Bootstrap isn't initializing at all.
I'm not sure what the issue could be.