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. Header Tag Question

    Header Tag Question

    Technical SEO Issues
    5 4 287
    • 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.
    • jfeitlinger
      jfeitlinger last edited by

      While reviewing code on a site, I found the following:

      <h1 class="<a class="attribute-value">logo</a>">  <a id="<a class="attribute-value">logo</a>" href="[http://siteexampleh1.com](view-source:http://dmbinc.com/)"><span>Example of most important content on this page- Companyspan>a>  h1>
      

      Is this the correct way to place code for an h1 tag?  The content is cached within the page and is hidden to the viewer.  The content that is assigned as the h1, is a logo.  Majority of code I have been reviewing does not use this setup. The code would instead read as (

      This is heading 1

      ).  Can anyone provide insights on this?

      Thanks!

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

        Hmmmm.

        I wouldn't make an H1 tag a logo. I also wouldn't make the h1 tag a link. The h1 tag is one of the most important on page factors for targeting a keyword.

        My suggestion would be to follow the example you gave in the paragraph,

        This is a heading

        Hope this helps,

        ~Garret

        eWebify.com

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

          Hmmmm.

          I wouldn't make an H1 tag a logo. I also wouldn't make the h1 tag a link. The h1 tag is one of the most important on page factors for targeting a keyword.

          My suggestion would be to follow the example you gave in the paragraph,

          This is a heading

          Hope this helps,

          ~Garret

          eWebify.com

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

            You need the H1 to be visible for it to "count" - sure, you've got text here, but it's being hidden by the CSS, which is replacing that text with your image file.

            You'd be much better off with a visible H1 headline containing text AND with your logo image being embedded with a standard image embed tag that ALSO has alt text for that image.

            1 Reply Last reply Reply Quote 1
            • Christy-Correll
              Christy-Correll last edited by

              I agree with Garrett in that I would use the H1 tag to mark up a heading (e.g., an article title, not a link or image.) H1, H2, H3 tags (and so forth) are (textual) header tags, after all, by definition, and are meant to help crawlers understand how pages are organized. They are also very important in helping screen readers (often used by the visually impaired) understand how a page is organized. Not properly marking up pages can result in a very frustrating, and confusing experience for those who rely on screen readers to navigate the web. The WC3 explains how to mark up textual content in HTML very well.

              While including the keyword in the H1 tag has little, if any value in terms of SEO, I think including it is good for usability -- for all users, not just those that use screen readers. When a user performs a keyword search, the search results show the keyword in the page titles. I think it confirms (for the user) that they are on the correct page (and have found what they are looking for) when one of the first things they see after clicking through to a page (from a search result) is a prominent headline containing the keyword in it.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Optimal use of keywords in header tag
                Serg155
                Serg155
                0
                3
                217

              • H1 Tags the same as Title Tags and other meta questions
                Houses
                Houses
                0
                3
                629

              • Meta Title Tags - Quick question!
                BradsDeals
                BradsDeals
                1
                6
                173

              • Curious Keyword Tags Question...
                EGOL
                EGOL
                0
                2
                117

              • Question
                DigitalMarketingInstitute
                DigitalMarketingInstitute
                0
                5
                150

              • Mobile header and Schema Tags
                bridget.randolph
                bridget.randolph
                0
                5
                273

              • Pageing page and seo meta tag questions
                iPullRank
                iPullRank
                0
                5
                145

              • Tags - Should i add description for every tag ?
                wolfinjo
                wolfinjo
                0
                7
                310

              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