Having trouble Linking CSS styles to HTML

I’m not sure why my about-styles.css file is not linking to my about.html page.

I would love some help if it’s possible.

Thanks.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css" />

<link rel="stylesheet"  href="css/about-styles.css" />


<title>Ryan Sharpss</title>

Hi ryan_sharp welcome to the forum

If the beginning of your HTML file is

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet"  href="css/about-styles.css" />
<title>Ryan Sharpss</title>

assuming the HTML file is “about.html” the folder strucure would be

site_folder/
. . . about.html
. . . css/
. . . . . normalize.css
. . . . . about-styles.css

That is, there is a css folder in the same folder about.html is on.
the two css files are inside the css folder and spelled exactly that way - case matters.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.