Help with errors

  • Unknown's avatar

    Hi

    So I recently got multiple errors for three pages:
    1. The parent tag of tag ‘html’ must be ‘!doctype’
    2. The attribute tabindex is missing or incorrect, but required by the attribute ‘on’
    3. A mandatory attribute is missing from an HTML tag
    4. A tag on this page requires an AMP component ‘script’ tag, which is missing
    5. A mandatory AMP HTML tag is missing from this document
    6. Tag found outside the document head which is only allowed as a direct child of the document head
    7. Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in the document head
    8. Custom JavaScript is not allowed
    9. Tag or text which is only allowed inside the body section found outside of the body section
    10. The attribute role is missing or incorrect, but required by the attribute ‘on’

    The three pages are:
    1. https://lensgreen.wordpress.com/2018/12/24/story-behind-surajkund-lake/amp/
    https://lensgreen.wordpress.com/2020/06/27/know-your-dugongs/amp/
    https://lensgreen.wordpress.com/2020/05/20/striking-the-balance-between-people-planet-profit/amp/

    I would really appreciate the help. Thanks!

    WP.com: Yes
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    So I recently got multiple errors for three pages:

    I’m not sure I understand, you are running your website through a testing tool of some kind? What are you using? Is it a public tool that we can use as well to get a closer look?

    Thanks for the additional info!

  • Unknown's avatar

    Hi

    Thanks for responding. I’m using the Google Search console that automatically gives me errors or shows if the page is valid.

  • Hi there,

    You can ignore those errors:

    While that tool in Search Console is useful to diagnose the cause if you spot a problem with your site, for example in this case if AMP pages weren’t loading correctly, or your site wasn’t appearing in mobile search results, the presence of errors there doesn’t mean something is actually wrong.

    Search Console, and other similar tools, like page speed analysers, just check your site against a set of arbitrary rules, and gives an error if your site doesn’t match those rules. But it doesn’t consider why your site is built the way it is – it can’t tell which of those things it considers an error is part of your hosting setup, or perhaps a critical element of the software that’s needed for your site to work correctly. And there’s not a single site on the web that won’t show any errors there.

    I’m willing to bet even Google.com itself will return some errors if it was run through their own validation tool :)

    Those AMP pages all load normally for me on mobile, so there’s nothing you need to fix here. All those things mentioned have to do with how the WordPress software generates the HTML code for the page, so it’s also not something you can change.

  • Unknown's avatar

    Okay, thank you so much!

  • The topic ‘Help with errors’ is closed to new replies.