tonmoy71 tonmoy71 - 6 months ago 9
HTML Question

Why is CSS style not working?

I am trying to apply a style for the HTML

<head>
tag. But it is not working.

Here is the code:

<?php

?>

<!DOCTYPE html>
<html>
<head>
<link rel = "stylesheet" href = "css/style.css">
home page
</head>
</html>


And here is the css/style.css part:

#head {
font-size: 15 px;
font-family: helvetica;
font-color: blue;
text-align: center;
};

Answer

I think this is what you were aiming for, head is not rendered :-)

header {
  font-size: 15px;
  font-family: helvetica;
  color: blue;
  text-align: center;
}
<html>
  <head>
    <link rel="stylesheet" href="css/style.css">
  </head>
  <header>
    home page
  </header>
</html>

Comments