...

View Full Version : Resolved Don't get what's wrong with validator!



bigcasey123
08-01-2012, 09:41 PM
I'm trying to validate my html code because my website looks wrong on mozilla firefox. So i used the validator but it keeps giving me the same error

"Attribute value not allowed on element img at this point."

<img src="images/loginbutton.png" value="Log in" id="loginbutton" alt="loginbutton"></a>

So i moved the alt but i still get the same error, if i remove it then i get two errors. What is the problem?

DrDOS
08-01-2012, 09:49 PM
<img src="images/loginbutton.png" value="Log in" id="loginbutton" alt="loginbutton" /></a>
You need to close that image tag for sure. I don't know if images can have a 'value'.

bigcasey123
08-01-2012, 09:49 PM
<img src="images/loginbutton.png" value="Log in" id="loginbutton" alt="loginbutton" /></a>
You need to close that image tag for sure. I don't know if images can have a 'value'.

Oh you're right, images can't have a value and that was the problem.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum