Currently, I am working with an index.ejs file in conjunction with Express for a local host web server. However, I seem to be encountering 4 errors of 2 different types. You can view the errors here. Below is a snippet of my code:
<html>
<head>
<title>Home</title>
<!-- <link rel="stylesheet" type="text/css" href="styles/main.css"> -->
<link rel="stylesheet" type="text/css" href="styles/mobile.css">
<link rel="icon" href="public/styles/images/icon.png">
</head>
<style type="text/css">
@import url("styles/main.css");
</style>
<body>
<nav>
</nav>
<main>
</main>
<footer>
</footer>
<script type="text/javascript" src="scripts/javascript/main.js"></script>
<script type="text/javascript" src="scripts/javascript/mobile.js"></script>
</body>
I attempted to create test CSS and JavaScript files in the same directory as the index.ejs file, but unfortunately, I faced errors with those too. Strangely enough, when I changed the file type to index.html, there were no errors. I'm curious to know why this occurred, so any insights would be greatly appreciated. Thank you!