Home > database >  css file not found in link(html)
css file not found in link(html)

Time:05-22

404 error that the css file not found

Searched YouTube and can't find a solution.

<!DOCTYPE html>
<html>

<head>
  <title>itays website </title>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <div >
    <button type="button" , >Home</button>
    <button type="button" , >Contact</button>
    <button type="button" , >Services</button>
    <button type="button" , >About</button>
  </div>
</body>

</html>

CodePudding user response:

Check that where did you creat your css file is it any folder

Check the file name properly

CodePudding user response:

In HTML Head Tag, update css file relative path for href attribute.

<link rel="stylesheet" href="<css file relative path>" />

In HTML Body button tag, remove comma (,) between type and class attributes

CodePudding user response:

Make sure that the css file and html file are in same folder

  • Related