SpOrTsDuDe.Reese Posted December 12, 2007 Share Posted December 12, 2007 I'm trying to get my CSS code validated while the files are offline. I have a website but I do not want to use the webspace just trying to see if a page is validated. I'm wondering if its possible to validate files that are offline...?The CSS code is as followed (Don't mind the <body> tags because I haven't developed the actual website yet, just the CSS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="generator" content="IPDynamic Lite"> <title></title> <meta name="keywords" content=""> <meta name="description" content=""> <style type="text/css"> <!--/* Beginning of CSS code *//* This code is entirely coded by a noobie. So don't make too much fun of it;D */body{ background:#FFFFFF; background-image:url(http://www.gameyin.com/images/backgroundimg.jpg); font-family:Verdana, Arial, Helvetica, sans-serif;}form{ display:inline; padding: 0; }img{ border: 0; /*Looks cool */}/*This is where all the link properties start */a:active{ background: transparent; color: #CC3399; text-decoration: underline;}a:visited{ background: transparent; color: #339966; text-decoration: none;}a:link{ background: transparent; color: #0000FF; text-decoration: none;}a:hover{ background: transparent; color: #F00F0F;}/* This is where all the link properties end *//* End of CSS code */--></style> </head><body></body> </html> Also any other suggestions to this would be helpful! Link to comment Share on other sites More sharing options...
Ingolme Posted December 12, 2007 Share Posted December 12, 2007 Try whichever of these two links you like best for CSS:http://jigsaw.w3.org/css-validator/#validate-by-uploadhttp://jigsaw.w3.org/css-validator/#validate-by-inputAnd for HTML:http://validator.w3.org/#validate_by_uploadhttp://validator.w3.org/#validate_by_input Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 13, 2007 Author Share Posted December 13, 2007 Hmm, I had all but 1 error on my validation..Come here to see what I mean. And tell me what I need to do to fix it. Link to comment Share on other sites More sharing options...
Synook Posted December 14, 2007 Share Posted December 14, 2007 You have to validate your CSS only, get rid of everything else and just validate /* Beginning of CSS code *//* This code is entirely coded by a noobie. So don't make too much fun of it;D */body{ background:#FFFFFF; background-image:url(http://www.gameyin.com/images/backgroundimg.jpg); font-family:Verdana, Arial, Helvetica, sans-serif;}form{ display:inline; padding: 0; }img{ border: 0; /*Looks cool */}/*This is where all the link properties start */a:active{ background: transparent; color: #CC3399; text-decoration: underline;}a:visited{ background: transparent; color: #339966; text-decoration: none;}a:link{ background: transparent; color: #0000FF; text-decoration: none;}a:hover{ background: transparent; color: #F00F0F;}/* This is where all the link properties end *//* End of CSS code */ Because tags are not part of CSS and won't validate. Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 18, 2007 Author Share Posted December 18, 2007 Ah, so my document is currently valid. I worked on a crap load more CSS code and that's still valid too. Awesome. Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.