Created root folder named 'public' with a sub-folder named 'css' that contains the stlyes.css stylesheet
Enabling Use
In server.js, added the line app.use(express.static(__dirname + '/public')); that allows us to read files from the public folder. (I used StackOverflow to learn how to do this).
Linking stylesheet in HTML files
In index.ejs, linked the stylesheet using <link href="/css/styles.css" rel="stylesheet" type="text/css">
Changing styling
In styles.css, added example styling that turns h1 elements red
Add Stylesheet
Where
Enabling Use
app.use(express.static(__dirname + '/public'));
that allows us to read files from the public folder. (I used StackOverflow to learn how to do this).Linking stylesheet in HTML files
<link href="/css/styles.css" rel="stylesheet" type="text/css">
Changing styling