Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member Arkymedes's Avatar
    Join Date
    Jun 2007
    Location
    Lons-le-Saunier, France
    Posts
    65
    Member #
    15389
    Liked
    1 times
    Hi all!

    I'm trying to validate my webpage (www-dev-en.njl.ee) in the W3C XHTML validator and I found this errors:
    Line 50, Column 48: there is no attribute "alt" .
    href="http://www-dev-en.njl.ee" alt="Home">

    This error may also result if the element itself is not supported in
    the document type you are using, as an undefined element will have no
    supported attributes; in this case, see the element-undefined error
    message for further information.
    So this makes me think, using a Transitional 1.0 xhtml Doctype, what can I do to replace the alt attribute? Or maybe I didn't got the idea of different doctypes?

    Thanks in advance all!

  2.  

  3. #2
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Why is there an alt to a anchor element? I think you want title instead.
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  4. #3
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Yes, as Rizqi says the <a> tag doesn't have an "alt" attribute...

    Are you perhaps building a structure such as...

    Code:
    <a href="mysite.php"><img src="gotomysite.jpg" width="70" height="20" border="0" /></a>
    ??!

    If so, the alt tag should be on the image, not on the anchor...

    Code:
    <a href="mysite.php"><img src="gotomysite.jpg" width="70" height="20" border="0" alt="Go to my site!" /></a>
    hth,

    Sean

    Edit: oops! XHTML validator... better put those there />s in ;-)

  5. #4
    Member Arkymedes's Avatar
    Join Date
    Jun 2007
    Location
    Lons-le-Saunier, France
    Posts
    65
    Member #
    15389
    Liked
    1 times
    ohh!

    of course, my mistake! a stupid one by the way

    sorry for the question then guys! thanks for the answers


Remove Ads

Posting Permissions

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

Search tags for this page

there is no attribute alt

,
there is no attribute alt w3c
,
xhtml there is no attribute alt
Click on a term to search for related topics.
All times are GMT -6. The time now is 12:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com