How to add an external CSS file in a MAVEN project

Viewed 18

"here I am trying to link an external CSS file to my index.html file but I am unable to do so .."

//index.html file

<html>
<head>
<title>main window</title>
<link rel="stylesheet" src="resources/style.css">
</head>
<body>
<h3>~FORCE AUT</h3>
<p id="head">main test in load</p>
</body>
</html>

[...........................................................

//style.css file

#head
{
   
color: red; 
     
}

https://i.stack.imgur.com/VfV15.png ~project structure

0 Answers
Related