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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.