I am currently working on a personal website project and I decided to use an HTML template from W3Schools. The template includes CSS files sourced from the internet:
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">
However, when I tried downloading all the CSS files locally and loading them from my local directory as shown below:
<link rel="stylesheet" type="text/html" href="./assets/w3.css">
<link rel="stylesheet" type="text/html" href="./assets/google_raleway.css">
<link rel="stylesheet" type="text/html" href="./assets/font_awesome.min.css">
The layout of the website completely falls apart after switching to using the locally stored CSS files instead of the online sources. Upon inspecting the page and checking the console, there are no error messages related to the CSS. It's baffling why it doesn't work locally.