• The footer child theme has a set of badges which, according to the W3C Markup Validation Service, have errors inthe markup. But I can’t figure out what these errors are and how to fix them. It just outputs ” Attribute alt not allowed on element a at this point.”.

    Also, I can’t figure where the unclosed DIV originates from from, as in what element on my sitte it refers to. The parent footer already had a closing tag for the site’s page element, so what it up with that?

    Any help, please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator cubecolour

    (@numeeja)

    do you get the same div error with all plugins deactivated?

    Thread Starter vind

    (@vind)

    Yes, all errors persist.

    To simplify the issue, are there any errors with the links of the following code?

    <table>
      <tbody>
        <tr>
          <td class="footer-table-credit"><a href="http://wordpress.org" title="Semantic Personal Publishing Platform">Proudly powered by WordPress</a><!-- .site-info --></td>
          <td class="footer-table-badges"><a href="http://www.discogs.com/artist/cresun" title="cresun's discography at Discogs" alt="discogs_badge" target="_blank" class="footer-img-badges discogs"></a></td>
          <td class="footer-table-badges"><a href="http://www.last.fm/music/cresun" title="Profile for cresun on last.fm" alt="lastfm_badge" target="_blank" class="footer-img-badges lastfm"></a></td>
          <td class="footer-table-badges"><a href="https://soundcloud.com/cresun" title="Listen to my music on SoundCloud" alt="soundcloud_badge" target="_blank" class="footer-img-badges soundcloud"></a></td>
          <td class="footer-table-badges"><a href="http://cresun.is-great.net/chocolate" alt="paypal_badge" title="Feeling generous?" class="footer-img-badges paypal"></a></td>
        </tr>
      </tbody>
    </table>

    This is the table that perfectly displays the badges in the footer of my website, which are loaded from a sprite and styled through CSS. According to the markup validation, there is something wrong with the links here. I just can’t figure what. So, eh.

    alt="discogs_badge" is according to the validator not allowed in html link tags.

    http://www.w3schools.com/tags/tag_a.asp

    remove those alt sections from your ‘perfectly display[ing]’ code

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: TwentyTwelve (Child)] Need help with markup errors’ is closed to new replies.