The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Moz News
    4. Can I have schema.org links as relative on my site? Getting an html validation error.

    Can I have schema.org links as relative on my site? Getting an html validation error.

    Moz News
    4 2 1.8k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RoxBrock
      RoxBrock last edited by

      I'm getting an html validation error on relative schema.org links

      "Bad value //schema.org/Organization for attribute itemtype on element div: The string //schema.org/Organization is not an absolute URL."

      This is my code for https site:

      <code class="input">e itemtype="//schema.org/Organization"><a itemprop="url" class="navbar-brand" …<="" code=""></a></code>
      
      1 Reply Last reply Reply Quote 0
      • RyanPurkey
        RyanPurkey last edited by

        The error is looking for an absolute URL (including the http or https) so it doesn't look like it'll parse without it there. There's a nice discussion from a year ago at Stack Exchange on this as well, with the conclusion being, "Regarding HTTP vs. HTTPS, see also my answer to a similar (not duplicate) question: I’d recommend to always use the HTTP variant of Schema.org URIs." From: http://webmasters.stackexchange.com/questions/71857/schema-org-itemtype-identifier-should-it-use-relative-urls-or-https-links  Cheers!

        1 Reply Last reply Reply Quote 3
        • RoxBrock
          RoxBrock last edited by

          I've read all your links and what I understand is an http link to schema.org is best practice. yes?

          RyanPurkey 1 Reply Last reply Reply Quote 0
          • RyanPurkey
            RyanPurkey @RoxBrock last edited by

            Yup.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • How can i increase DA of my site?
              0
              3
              61

            • Moz Pro, our web crawler, and sites that use SNI (804 HTTPS SSL) error
              Christy-Correll
              Christy-Correll
              4
              75
              4.0k

            • Link Clean up?
              firstconversion
              firstconversion
              0
              4
              393

            • Why some sites doesn't get ranked in Google but in Bing and Yahoo
              BrettCollins
              BrettCollins
              2
              4
              1.7k

            • Can I re-run SEOMoz campaigns and crawl diagnostics or are they locked in on a weekly basis? Just made several changes to a site and would like to see the progress ASAP.
              luisperezphd
              luisperezphd
              0
              4
              731

            • Too Many On-Page Links
              gmk1567
              gmk1567
              0
              3
              288

            • Can I chat with seomoz.org?
              Christy-Correll
              Christy-Correll
              0
              8
              1.2k

            • Issue: 5XX (Server Error)
              josh-riley
              josh-riley
              0
              4
              4.7k

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy