External style not picked by div element
<p>I am relatively new to CSS so please let me know if there is a silly mistake on below. While trying out one of the examples on <strong>w3cschools</strong> I used the below code</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
div {
    background-color: lightgrey;
    width: 300px;
    border: 25px solid green;
    padding: 25px;
    margin: 25px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;h2&gt;Demonstrating the Box Model&lt;/h2&gt;

&lt;p&gt;The CSS box model is essentially a box that wraps around every HTML element. It consists of: borders, padding, margins, and the actual content.&lt;/p&gt;

&lt;div&gt;This text is the actual content of the box. We have added a 25px padding, 25px margin and a 25px green border. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and result was correct with a green border and text in grey background.</p>

<p>However while trying to do the same with an external css like below.</p>

<p>This code is in thumbnailTest.css</p>

<pre><code>.dics{

    background-color: lightgrey;
    width: 300px;
    border: 25px solid green;
    padding: 25px;
    margin: 25px;

}
</code></pre>

<p>This is the HTML </p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="ISO-8859-1"&gt;
&lt;title&gt;Insert title here&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css"
    href="C:\Users\Sam\Documents\workspace\test_project\cssTest\thumbnailTest.css"&gt;


&lt;/head&gt;
&lt;body&gt;

    &lt;div class="dics"&gt;This text is the actual content of the box. We have added a
        25px padding, 25px margin and a 25px green border. Ut enim ad minim
        veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
        ea commodo consequat. Duis aute irure dolor in reprehenderit in
        voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
        sint occaecat cupidatat non proident, sunt in culpa qui officia
        deserunt mollit anim id est laborum.&lt;/div&gt;



&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The same output is not replicated it appear as plain text and no styling.</p>

<p><strong>Although path to the css is correct also I have tried putting relative path it is not working</strong></p>

<p>There is no issue with the css inclusion as it works for many other styles I have used but with Div it is not working</p>

<p>Here is the required workspace image</p>

<p><a href="https://i.stack.imgur.com/VbCMd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VbCMd.jpg" alt="enter image description here"></a></p>