I am implementing bootstrap 5
in my html
page. The code is as follows:
<link rel="stylesheet" src="/main_styles.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
When I run the page in my server, it doesn't read any styles from my main_styles.css
sheet. Why?
CodePudding user response:
It's href
for link
tags, not src
<link rel="stylesheet" href="/main_styles.css">
That should work