Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Feb 2012
    Posts
    101
    Thanks
    2
    Thanked 5 Times in 4 Posts

    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.

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,195
    Thanks
    15
    Thanked 253 Times in 253 Posts
    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'.

  • #3
    Regular Coder
    Join Date
    Feb 2012
    Posts
    101
    Thanks
    2
    Thanked 5 Times in 4 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •