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. Does Google give any weight to css class or id names?

    Does Google give any weight to css class or id names?

    Technical SEO Issues
    3 3 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.
    • aidiaz
      aidiaz last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • LauraSultan
        LauraSultan last edited by

        I've never heard of Google using class names as a ranking factor, and I can't see any reason why they would. It would be easy to manipulate, and class names don't affect the user experience at all.

        My takeaway from the webmaster guidelines you referenced is that user experience is an important ranking factor (something we knew already), and Google needs to access the page's Javascript and CSS in order to evaluate the user's experience of that page. Google wants to render your page in the same way the user experiences it for indexing purposes. That's why they threaten to penalize your site if you disallow crawling of Javascript or CSS.

        1 Reply Last reply Reply Quote 2
        • nicoley
          nicoley last edited by

          Class names are part of CSS code, therefore crawlers read the class names.

          While 'class names' are not considered in ranking factors specifically, there are other factors that are impacted by them. In addition to issues related to robots.txt files disallowing a crawl of the assets and directly harming how well Google algorithms render/index content, resulting in suboptimal rankings." [c] Here are a few more items to consider:

          • External resources like CSS & JavaScript help algorithms understand that the pages are optimized for mobile. And this is a factor in ranking. [b]
          • Some JavaScript removes content from the page rather than adding, which prevents Google from indexing the content. This is also a factor in ranking [b]
          • Speed is a factor and google publishes a CSS/HTML style guide and best practices for faster loading pages, to optimize the serving of CSS / number of calls. [a] [e] 
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Sitelink search in google search for Brand name redirect me to 404, how?
            amu123
            amu123
            0
            4
            73

          • Google Gives me different results
            falguniwpi
            falguniwpi
            0
            10
            137

          • Help: domain name change and Google News
            christyrobinson
            christyrobinson
            1
            5
            446

          • Google ignores Meta name="Robots"
            brad.s.knutson
            brad.s.knutson
            0
            4
            282

          • How to optimize for different google seach center (google.de, google.ch) ?
            Aleyda
            Aleyda
            0
            4
            270

          • Which carries more weight Google page rank or Alexa Rank?
            sherohass
            sherohass
            0
            3
            397

          • Business name not showing on Google Maps Satellite View
            MiriamEllis
            MiriamEllis
            1
            7
            4.5k

          • Does Google follow links in "id" tag?
            ShaMenz
            ShaMenz
            0
            2
            694

          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