Jump to content

a class="" W3C non compliance


patrmich

Recommended Posts

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 by thescientist
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...