YigalB Posted January 22, 2011 Share Posted January 22, 2011 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 More sharing options...
haku Posted January 22, 2011 Share Posted January 22, 2011 <link type="text/css" rel="stylesheet" href="mystyle.css"> Link to comment https://forums.phpfreaks.com/topic/225331-error-with-css/#findComment-1163629 Share on other sites More sharing options...
YigalB Posted January 22, 2011 Author Share Posted January 22, 2011 thanks, issue solved. Link to comment https://forums.phpfreaks.com/topic/225331-error-with-css/#findComment-1163631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.