Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

Running CSS File using notepad++

$
0
0

I have written a HTML code and CSS code in Notepad++. I have linked my CSS code in the below way. After saving both of the files in the same directory, I am running both of the files by double clicking them. I can see my HTML running properly in the browser. Although, when I am trying to run my CSS file, it just opens in Notepad. I have saved my CSS file as 'all type files' named as style1.css

Code for HTML:

<!doctype html>
<html lang ="en">
<head>
<meta charset = "utf-8">
<title>HTML CSS COURSE </title>
<link rel ="stylesheet" type ="text/css" href ="style1.css">
</head>
<style>

</style>
<body>
Hello World!
</body>
</html>

****Code for CSS:****

body{

background-color:red;

}

Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>