patrmich Posted February 21, 2014 Share Posted February 21, 2014 Hi, In the source of my html page is the following code : <a class="" href="http://www... Such code leads to a W3c error : "Sp 121 Syntax of attribute value does not conform to declared value" Could you give me some advise on the way to solve this error ? Thank you in advance for any reply. Patrick Link to comment Share on other sites More sharing options...
thescientist Posted February 21, 2014 Share Posted February 21, 2014 what's the whole snippet of the markup? it's hard to tell just by what you posted alone. Link to comment Share on other sites More sharing options...
Ingolme Posted February 21, 2014 Share Posted February 21, 2014 Probably you're not allowed to have an empty class value. Link to comment Share on other sites More sharing options...
Wolverine Posted February 24, 2014 Share Posted February 24, 2014 Put something in the class value. How does it know what class to use if you don't? Link to comment Share on other sites More sharing options...
thescientist Posted February 25, 2014 Share Posted February 25, 2014 (edited) Put something in the class value. How does it know what class to use if you don't? it doesn't care what the value is, as long as there is a value. That's what it's trying to tell you. So you either have <a class="my-class" href="#">Link</a> or just leave the class attribute off the tag altogether. <a href="#">Link</a> Edited February 25, 2014 by thescientist Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now