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. On-Page / Site Optimization
    4. How does a collapsed section affect on page SEO?

    How does a collapsed section affect on page SEO?

    On-Page / Site Optimization
    3 3 3.7k
    • 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.
    • stephanwb
      stephanwb last edited by

      A client recently asked me whether a tabbed collapsed section of text that is expanded (i.e. revealed) when clicked, is an OK thing to do without negatively effecting SEO.

      I told him that for starters, he may want to rethink why he would want to hide the text in the first place (this is not an FAQ type scenario). The reason has to do with the aesthetic of the page.

      Anyway, aesthetic aside, any thoughts on whether a collapsed (hidden from view) negatively affects on-page SEO?

      Thanks. 
      Stephan

      1 Reply Last reply Reply Quote 0
      • MichaelC-15022
        MichaelC-15022 last edited by

        Hi Stephan,

        Presuming the expand/collapse thing is done properly, it should be golden.  You'll find a lot of sites use this approach when they have multiple pages of content, e.g. a product page with specifications, reviews, technical details, etc.

        I do this on my travel website.  A great way to test to see if the initially-collapsed content is being seen and indexed by Google is to take a block of text from the collapsed section and search for it in double-quotes.

        Here's an example:  search for "At the Bora Bora Pearl Beach Resort you can discover the sparkling magic of the lagoon".  You'll find my site there at #3 (Visual Itineraries), along with the other 1000 websites who've also copied the resort's description straight from the resort's website (yeah, I really shouldn't do this).  So much for Google's duplicate content detection when it comes to text chunks...BUT I DIGRESS.  That content you see is on the More Info tab.

        Now, on to what "done properly" means:

        • each tab should be in a separate div
        • assign all divs a class which has style="display:none;" EXCEPT the currently selected tab
        • have onclick handlers for the tabs that set all of the divs' classes to the display:none class, and then set the newly selected tab's div class to one with display:block or display:inline

        And not done properly would mean something like changing the text of a div with Javascript onclick()....because Google won't see that text in the Javascript.  It's got to be in the HTML.

        That's about it.  Not so tricky, really.  And works well both for usability (no roundtrip to the server, not even an Ajax fetch!) and for SEO (lotsa yummy content on a single page for Panda).

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

          As long as the search engine can read all the text, I see no issues.  Modern designers put text in multiple tabs or partially hidden until expanded all the time these to create a better user experience.  It is generally only hidden from the user using css and is fully visible in the code.

          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post
          • Changing a product page from "example.com" to "example.com/keyword" affect SEO and Ranking?
            Alexrobi
            Alexrobi
            0
            3
            58

          • Will shortening down the amount of text on my pages affect it's SEO performance?
            DickensLawGroup
            DickensLawGroup
            0
            4
            81

          • Should a website have the same standard headings for product pages? And how does that affect SEO?
            JaneCopland
            JaneCopland
            0
            3
            102

          • On page SEO Strategy / What pages to use?
            SeaQuatic
            SeaQuatic
            0
            6
            212

          • Will Repeating Shipping Info on product pages affect SEO?
            well-its-1-louder
            well-its-1-louder
            0
            3
            242

          • Seo category or specific seo page?
            vladokan
            vladokan
            0
            4
            297

          • SEO Value of Within-Page Links vs. Separate Pages
            CPU
            CPU
            0
            3
            962

          • Will a Media Wiki guides section affect my sites SEO?
            StephanM
            StephanM
            0
            5
            1.5k

          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