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. Technical SEO Issues
    4. Img before or after h1 tag?

    Img before or after h1 tag?

    Technical SEO Issues
    8 5 3.0k
    • 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.
    • jotham2
      jotham2 last edited by

      I like images to align right at top of content page.  img tag before h1 tag looks better on page, but wondering if h1 tag before img tag is preferred by spider.  Irrelevant? or possibly matters?   thanks for any thoughts.
      stuff

      All about Stuff

      or

      All about Stuff

      stuffor even

      stuff
      All about Stuff

      1 Reply Last reply Reply Quote 0
      • Develop41
        Develop41 last edited by

        The second option would  work best. The contents of the H1 and other heading tags, matter a lot when optimizing a page for specific keywords. The tag should not contain images and should appear before anything else on the page.

        1 Reply Last reply Reply Quote 1
        • heatherrobinson
          heatherrobinson last edited by

          I would be interested to see whether anyone has done any experiments or had any experience of this effecting search engine positions.

          I would say that as long as the H1 appears near the top of the page before any

          oretc, so that the markup is correctly formatted as the W3C guidelines state, then it shouldn't really matter. But I could be wrong.

          Thos003 1 Reply Last reply Reply Quote 2
          • Thos003
            Thos003 @heatherrobinson last edited by

            I think that's a great idea Heather. When can we expect that report?

            1 Reply Last reply Reply Quote 0
            • Thos003
              Thos003 last edited by

              I really don't think it will make that much of a difference. I think the real tipping point in image optimization, other than content of the webpage, is the title and alt tags.  So your example should be

              But if I had to guess... The images relevancy is probably most closely associated with the surrounding text. So I would error on the side of putting it after the H1.

              andresgmontero 1 Reply Last reply Reply Quote 1
              • andresgmontero
                andresgmontero @Thos003 last edited by

                I agree with Thomas, there is not much of a difference here, and if we look a little further into the future, in the HTML5 structured data every section can have an H1 tag.

                So I would advice to put the image where ever looks best for the user, add that alt tag and keep the image put of the H1 for sure.

                1 Reply Last reply Reply Quote 0
                • jotham2
                  jotham2 last edited by

                  yeah it's a tiny point but I'd be interested in results of any test too.   I think if h1 is one of the very first things on page, don't add anything like an image above it.   however I have so many lines of scripts and divs and lists with mouseovers that what's one more line of code.... since I like the slightly higher position of the image when place img before h1.     Focusing on content creation, and just want to set a guideline for myself on a detail like this and move on.  Thanks much!

                  Thos003 1 Reply Last reply Reply Quote 0
                  • Thos003
                    Thos003 @jotham2 last edited by

                    Bots can burn through script... I don't think an extra line is  really a speed bump.

                    .. but yes... always fun to test things.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • NoIndex tag, canonical tag or automatically generated H1's for automatically generated enquiry pages?
                      Kim_Lazaro
                      Kim_Lazaro
                      0
                      3
                      53

                    • Hidden H1 Tag on Image
                      AndyMozster
                      AndyMozster
                      0
                      4
                      5.0k

                    • Multiple H1 tags in Squarespace
                      LesleyPaone
                      LesleyPaone
                      0
                      4
                      2.0k

                    • Isnt it better to have headlines in H1 and H2 tags instead of p tags?
                      ThompsonPaul
                      ThompsonPaul
                      1
                      4
                      2.6k

                    • Logos and H1 Tags
                      smilingbunny
                      smilingbunny
                      0
                      3
                      560

                    • How do I fix the h1 tag?
                      678648631264
                      678648631264
                      0
                      6
                      2.9k

                    • One H1 tag Dead Long Live multiple H1 tags?
                      irvingw
                      irvingw
                      0
                      4
                      2.7k

                    • H1 Tag.
                      levalencia1
                      levalencia1
                      0
                      6
                      7.3k

                    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