1 reply [Last post]
pookster
Offline
newbie
chattanooga, TN
Last seen: 2 years 42 weeks ago
chattanooga, TN
Timezone: GMT-5
Joined: 2016-11-27
Posts: 2
Points: 4

Sorry for my previous unfinished post. Hit the wrong button. Thank you.
I'm new to CSS and HTML5 coding. I created an eternal style sheet in Windows Notepad and I'm using Notepad++ as my main text editor. The problem that I am having, I wrote an external style sheet in Windows notepad("color.css") and it is saved to my desktop.

color.css written in Windows Notepad

body{background-color:#0000FF;
color:#FFFFFF;}

I wrote my main code in Notepad++ and tried to link this code to this webpage, but it didn't work.

<!DOCTYPE html>
<html lang="en">
<head>
<title>External Styles</title>
<meta charset="utf-8">
<link rel="stylesheet" href="color.css">
<style>
</style>
</head>
<body>
<p>This web page uses an external style sheet.</p>
</body>
</html>

Not sure why it's not working. Thanks for any help offered.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 days 18 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Hi pookster, Are both the

Hi pookster,
Are both the files in the same folder, or desktop in your case?

Also on windows check the case of the file name.