Support » Plugin: AMP » Disallowed attribute or attribute value present in HTML tag

  • Resolved markworthen

    (@markworthen)


    Google Search Console tells me that 51 pages on my site are invalid due to “Disallowed attribute or attribute value present in HTML tag.”

    AMP version URL

    [Moderated: Large paste removed]

    • This topic was modified 10 months, 2 weeks ago by t-p.
    • This topic was modified 10 months, 2 weeks ago by t-p.
    • This topic was modified 10 months, 2 weeks ago by t-p.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    [Moderated: Large paste removed per forum guidelines. Please use Pastebin and Gist and copy your code there. Then return here and paste the link to that here.]

    Plugin Author Pascal Birchler

    (@swissspidy)

    Hi @markworthen

    The AMP validator seems to flag the following usage of target="_blank" in your footer, probably because it is an internal link that shouldn’t be opened in a new window:

    <a href="https://ptsdexams.com/privacy-policy/" target="blank" rel="noopener">Privacy Policy</a>

    I suggest removing that, so that the link becomes this:

    <a href="https://ptsdexams.com/privacy-policy/">Privacy Policy</a>

    (no need for rel="noopener" really because it is your own domain).

    Also, I noticed ~10 links like this on your site:

    <a title="twitter profile" href="https://twitter.com/markdworthen" target ="_blank">

    Notice the errant space between target and =. This should be corrected to target="_blank".

    Plugin Author Weston Ruter

    (@westonruter)

    Hi. You’re not using this AMP plugin. Please submit a support forum topic for the appropriate plugin’s support forum: https://wordpress.org/support/plugin/accelerated-mobile-pages/

    t-p – I did not know about Pastebin. Great resource, thank you.

    Pascal – Thank you so much!

    Weston – Well that’s embarrassing! There is a difference between AMP and AMP for WP … :-|. Sorry for the hassle.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disallowed attribute or attribute value present in HTML tag’ is closed to new replies.