Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. SEO Tactics
    3. Technical SEO
    4. Is it bad (black hat) to have an H1 text as a text indent?

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Is it bad (black hat) to have an H1 text as a text indent?

    Technical SEO
    5
    7
    5404
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • inc.com
      inc.com last edited by

      Is it bad practice to use a text indent through CSS for H1 text on a homepage(basically hiding h1 text)? I'm just trying to compensate for the fact that some text that should really be in the h1 tag is actually an image.

      1 Reply Last reply Reply Quote 1
      • inc.com
        inc.com @CaseyKluver last edited by

        Thanks for the advice! That sounds like a good plan B if I can't get the developers to change the image to text. This is definitely one of the most avoidable yet most frustrating on page issues I encounter.

        I guess it's time to update my documentation for development.

        1 Reply Last reply Reply Quote 0
        • inc.com
          inc.com @ClickConsult last edited by

          Thanks, I was just thinking that too, but I'd rather be safe than sorry.

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

            Hi Mike,

            I'd personally say that you're fine, depending how you impliment it.

            I personally believe that as long as the text that you add reads what the image contains, you're fine.

            SEOmoz even use image replacement!

            Good luck!

            inc.com 1 Reply Last reply Reply Quote 1
            • mediabase
              mediabase last edited by

              Hi Mike, The text-indent property can be applied to block-level elements (P, H1, etc.) to define the amount of indentation that the first line of the element should receive. The value must be a length or a percentage; percentages refer to the parent element's width. A common use of text-indent would be to indent a paragraph:

              **`P { text-indent: 5em }`**
              

              The usage of text-indent:-9999px to display a site logo or other image while hiding text should be avoided. It’s a technique used by web spammers trying to game search engines like Google, and is considered spammy behavior. Instead, use an  tag and put the text inside its alt attribute.

              According to Matt Cuts (and some other comments) the best solution is to use an image with alt andtitle attributes. The alt attribute is for SEO and the title attribute is for accessibility. Using an image also makes sense for semantic markup. A company logo is actually an important piece of content.

               **`#  <a< span="">href="http://stackoverflow.com"> <img< span="">src="logo.png"  alt="Stack Overflow"  title="Click to return to Stack Overflow homepage"  /></img<></a<>`** 
              

              <code>Well, recently, I'm thinking about SEO effects with using something like h1 {text-indent: -9999px; background: url('xyz') }...
              I dont think I trust this anymore to be good for SEO. And I don't mean that it's actually "good" for it, because that would certainly be bad SEO techniques. I'm just thinking that it wouldn't be too far fetched to believe that in the search algorithms that anything that is negative text indent over ABC pixels, is considered spam and either isn't registered, or even worse, effects your site negatively.</code>

              
              Hiding the contents of an H1 tag, such that the search engine is presented with textual content which is not visible to a visitor, is SEO Spamming, and can get the site banned if one of your client's competitors catches you doing it and turns you in! 
              
              It is, in fact, a form of hidden text spamming (itself "Black Hat", and explicitly banned by all of the major search engines). With the offense made all the worse by the fact you are doing it with an H1 tag, rather than non-emphasized text (Due to both the power of an H1, and the real estate it would take-up if rendered on-screen) 
              
               Google makes it pretty clear that hidden text spamming is prohibited. In fact, they have a web page in their anti-spam guidelines devoted to it! They also have a check-off box (the first one, in fact!) on their spam report page specifically dedicated to reporting this kind of spamming (see 3rd link - requires login). 
              
              The fact that Google may not explicitly list every means of hiding keywords does not therefore make a particular spamming technique legit. Indeed, as Google states in their Webmaster guidelines (see 1st link) - 
              
              "It's not safe to assume that just because a specific deceptive technique isn't included on this page, Google approves of it." 
              
              However, in this case, this method of hiding content is specifically prohibited. On their Hidden Text Spamming page (2nd link), Google lists examples of various tricks to hide content, including specifically - 
              
              "Using CSS to hide text" 
              
              Which is what you are proposing to do here. 
              
              While implementing this with external CSS files MAY make this a bit harder for Google to detect via automated means, it is also a VERY easy technique for someone to spot. 
              
              All it takes is for just ONE of your client's competitors (OR their SEO's) to wonder why the site is coming-up higher in the SERPs than they are, notice what you are doing, and turn you in to Google for spamming! 
              
              Any short-term gain you may obtain from such a technique is not worth the risk of getting your client's site banned from Google. 
              
              The original quote from the WebmasterWorld discussion referenced by the Search Engine Roundtable link Shaq Ali provided makes the following excellent point - 
              
              "For those who may be hiding things through CSS or negatively positioning content off screen to manipulate page content, I surely wouldn't do that with any long term projects. ;) 
              
              The penalty for getting busted using this technique I would imagine is a PERMANENT BAN.* No if's, and's, or but's, you're history. You'll need a pardon from the Governor to be reconsidered for inclusion. ;)" 
              (* - Bold replaced with caps) 
              
              #### Links:
              
              *   [http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35769](http://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Egoogle%2Ecom%2Fsupport%2Fwebmasters%2Fbin%2Fanswer%2Epy%3Fhl%3Den%26answer%3D35769&urlhash=woHy "New window will open")
              *   [http://www.google.com/support/webmasters/bin/answer.py?answer=66353](http://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Egoogle%2Ecom%2Fsupport%2Fwebmasters%2Fbin%2Fanswer%2Epy%3Fanswer%3D66353&urlhash=e5Vy "New window will open")
              *   [https://www.google.com/webmasters/tools/spamreport](http://www.linkedin.com/redirect?url=https%3A%2F%2Fwww%2Egoogle%2Ecom%2Fwebmasters%2Ftools%2Fspamreport&urlhash=UReX "New window will open")
              
              I hope that your query had been solved.
              1 Reply Last reply Reply Quote 2
              • vforvinnie
                vforvinnie @CaseyKluver last edited by

                If he put the image within the h1, and set the alt text to what he wanted the H1 would that help?  It wouldn't be ideal but it could be a workaround that would yield some results.

                I agree the design should encompass the proper tags, especially the H1 and H2.

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

                  Hiding text through CSS is against Google's TOS. So basically it can be classified as "black hat".

                  Your H1 should tell your users what your page is about, if you have to hide it for whatever reason, there may be something wrong with your design.

                  vforvinnie inc.com 2 Replies Last reply Reply Quote 2
                  • 1 / 1
                  • First post
                    Last post

                  Got a burning SEO question?

                  Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                  Start my free trial


                  Browse Questions

                  Explore more categories

                  • Moz Tools

                    Chat with the community about the Moz tools.

                  • SEO Tactics

                    Discuss the SEO process with fellow marketers

                  • Community

                    Discuss industry events, jobs, and news!

                  • Digital Marketing

                    Chat about tactics outside of SEO

                  • Research & Trends

                    Dive into research and trends in the search industry.

                  • Support

                    Connect on product support and feature requests.

                  • See all categories

                  Related Questions

                  • Digital_Reach

                    Google Search Console "Text too small to read" Errors

                    What are the guidelines / best practices for clearing these errors? Google has some pretty vague documentation on how to handle this sort of error. User behavior metrics in GA are pretty much in line with desktop usage and don't show anything concerning Any input is appreciated! Thanks m3F3uOI

                    Technical SEO | | Digital_Reach
                    2
                  • Marketing_Today

                    Create Page Titles from H1 using Yoast?

                    I'm working on a site that has 280 blog posts that have either been migrated from an old CMS site or created on the Dev version of the new WordPress site. We've written 280 unique meta descriptions so they don't truncate but it there a quick way I can export the current H1s and then import them into Yoast so they are set as the Page Titles? I've written unique Page Titles and meta descriptions for all the Service and Products page and just want a way to speed up the blog posts as their H1s are really good and what I would use as Page Titles anyway. Any help, greatly appreciated!

                    Technical SEO | | Marketing_Today
                    0
                  • wearehappymedia

                    Anchor text with punctuation

                    Hey Moz Does anchor text with punctuation effect anything, does google even read it? I know matching exact anchor text to high volume keywords doesn't matter as much any more - but it still definitely makes a different as our reports show. Thanks

                    Technical SEO | | wearehappymedia
                    0
                  • AL123al

                    Is it ok to use H1 tags in breadcrumbs?

                    A client has an e-commerce site and she doesn't want a page title on the products page. She has breadcrumbs though. Her website developer suggests putting the H1 on the breadcrumbs. So: products> Gifts > picture frame with h1 tags round the word "picture frame". Is this ok to do? Or is it a bad thing for SEO purposes? Thanks

                    Technical SEO | | AL123al
                    0
                  • Pete4

                    Can I have an H1 tag below an H2?

                    Quick question for you all - Is there an issue with me having an H1 tag physically below an H2 tag on a web page??

                    Technical SEO | | Pete4
                    0
                  • Circa

                    Someone is building anchor text links with child porn keywords..help :-(

                    Hey Everyone; I recently found that there are tons of links to my url (30+) from several sites with the anchor text "download child porn, kiddie porn, and the likes". Although the sites linking to us where the person built the links do not have this content (thank god) it is just my url + the horrible anchor text someone is putting. [added image] Obviously I would not do that to my own site especially since I was ranked for over 15 keywords in the top 5 spots on Google and Bing. I am guessing its a competitor and I am wondering that is there any way I can remove them? Is this negative seo? Also could this be the reason my site has dropped off google page 1 last month for all my positions? I am consistently trying to rebuild but my positions are flying all over the place. Im going from ranking #12 one week to #198 the next; then to #60 and finally not even on google or bing anymore; then back to #50, etc for the past month and a half... Its very aggravating and it has hurt a few of my websites; im at a total loss on how to recover now if this is the case...It seems they have started to build these links in January from what I can find on the postings.. Thank you SEOMOZ im so happy im a member now. Any suggestions on how i can get these links off or if it is why my site has lost its original rankings.. Should I just can my website and start all over with a different URL? How can I watch out for this in the future? Any help would be so so so greatly appreciated and valued 🙂 xpVjMw8

                    Technical SEO | | Circa
                    0
                  • 678648631264

                    How do I fix the h1 tag?

                    No More Than One H1 Tag Easy fix <dl> <dt>Number of H1s</dt> <dd>2</dd> <dt>Explanation</dt> <dd>Best practices for both SEO and accessibility require only a single H1 tag. The H1 is meant to be the page's headline, and thus, multiple H1s are confusing. Consider employing H2, H3 or CSS styles to achieve the same results with text visualization.</dd> <dt>Recommendation</dt> <dd>Remove multiple instances of the H1 tag, so that only one exists on the page.</dd> <dd>I get this error yet it does not tell me how to fix it. I'm not even sure what the H1 tag is?
                    </dd> </dl>

                    Technical SEO | | 678648631264
                    0
                  • MaartenvandenBos

                    Use of + in url good or bad?

                    Hi, I am working on a SEO project for a client.
                    Some of the urls have a + between the keyword.
                    like www.example.com/make+me+happy/ Is this good or bad for seo?
                    Or is it maybe better to use - ? Thanks!

                    Technical SEO | | MaartenvandenBos
                    0

                  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
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority 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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                  • Accessibility
                  • Terms of Use
                  • Privacy

                  Looks like your connection to Moz was lost, please wait while we try to reconnect.