Home > Software design >  Why is my .css page not being applied to my page?
Why is my .css page not being applied to my page?

Time:08-17

I am wanting to link a stlyesheet to my html doc, but it is not applying to my website. When I had the same css as an internal stylesheet, it worked fine but will not work as an external page. Attached is a screenshot for reference

enter image description here

CodePudding user response:

You can try change with this way:

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

change sylesheet to stylesheet

CodePudding user response:

You can try this way.

<head>

<link rel="stylesheet" type="text/css" href="style.css"/>

</head>

  • Related