josephman1988 Posted February 22, 2009 Share Posted February 22, 2009 Hey guys, Question about validation. I have this: document type does not allow element "style" here. <style type="text/css" | > | the '>' being highlighted with w3c. How can I fix this? Quote Link to comment Share on other sites More sharing options...
jackpf Posted February 22, 2009 Share Posted February 22, 2009 Styles must be in the head of the document. Quote Link to comment Share on other sites More sharing options...
haku Posted February 23, 2009 Share Posted February 23, 2009 It's not very clear what exactly you are trying to do. Quote Link to comment Share on other sites More sharing options...
josephman1988 Posted February 24, 2009 Author Share Posted February 24, 2009 Ok sorry - I see that most of the reason why the document isn't validating is Javascript related, so, if you could send this thread to the appropriate forum it would be appreciated. So basically: http://validator.w3.org/check?uri=www.v2.projectfinalfantasy.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.606 The 'lesser than' operator is causing the first problem and suspect that is whats causing many of the others. Or maybe I am wrong? Quote Link to comment Share on other sites More sharing options...
haku Posted February 24, 2009 Share Posted February 24, 2009 You have to tell us what it is you are trying to do if before we can tell you what is wrong with the code and how to fix it. Are you just trying to do this: <style type="text/css"> Quote Link to comment Share on other sites More sharing options...
josephman1988 Posted February 25, 2009 Author Share Posted February 25, 2009 Just trying to validate my code. >< Quote Link to comment Share on other sites More sharing options...
haku Posted February 25, 2009 Share Posted February 25, 2009 No, what are you trying to do with that code? The correct code is this: <style type="text/css"> // all CSS declarations go in here </style> Change your code to that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.