Jump to content

Error with CSS


YigalB

Recommended Posts

I am trying to learn CSS, so I tool example from the web. It's easy because of the cut & paste, and all went well, untill I tried to move from CSS + HTMl in one file to seperate files.

 

here is the code, and below the working.

What is this warning about? I marked the relevant line with green color

 

The code:

!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>

<head>

  <title>My first styled page</title>

  <link rel="stylesheet" href="mystyle.css">

</head>

 

<body>

 

<!-- Site navigation menu -->

<ul class="navbar">

  <li><a href="index.html">Home page</a>

  <li><a href="musings.html">Musings</a>

  <li><a href="town.html">My town</a>

  <li><a href="links.html">Links</a>

</ul>

 

<!-- Main content -->

<h1>My first styled page</h1>

 

<p>Welcome to my styled page!

 

<p>It lacks images, but at least it has style.

And it has links, even if they don't go

anywhere…

 

<p>There should be more here, but I don't know

what yet.

 

<!-- Sign and date the page, it's only polite! -->

<address>Made 5 April 2004<br>

  by myself.</address>

 

</body>

</html>

 

 

the error:

line 5 column 3 - Warning: <link> inserting "type" attribute

 

Link to comment
https://forums.phpfreaks.com/topic/225331-error-with-css/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.