Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-01-2012, 08:41 PM   PM User | #1
bigcasey123
New Coder

 
Join Date: Feb 2012
Posts: 95
Thanks: 1
Thanked 5 Times in 4 Posts
bigcasey123 is an unknown quantity at this point
Don't get what's wrong with validator!

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."
Code:
<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?

Last edited by bigcasey123; 08-01-2012 at 08:52 PM..
bigcasey123 is offline   Reply With Quote
Old 08-01-2012, 08:49 PM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
Code:
<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'.
DrDOS is offline   Reply With Quote
Old 08-01-2012, 08:49 PM   PM User | #3
bigcasey123
New Coder

 
Join Date: Feb 2012
Posts: 95
Thanks: 1
Thanked 5 Times in 4 Posts
bigcasey123 is an unknown quantity at this point
Quote:
Originally Posted by DrDOS View Post
Code:
<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.

Last edited by bigcasey123; 08-01-2012 at 08:52 PM..
bigcasey123 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:21 PM.


Advertisement
Log in to turn off these ads.