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. Intermediate & Advanced SEO
    4. When using ALT tags - are spaces, hyphens or underscores preferred by Google when using multiple words?

    When using ALT tags - are spaces, hyphens or underscores preferred by Google when using multiple words?

    Intermediate & Advanced SEO
    9 6 29.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.
    • BrooklynCruiser
      BrooklynCruiser last edited by

      when plugging ALT tags into images, does Google prefer spaces, hyphens, or underscores?  I know with filenames, hyphens or underscores are preferred and spaces are replaced with %20.

      Thoughts?

      Thanks!

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

        The Alt tag is primarily there for usaility - ie when you hover the user can see the alt information. Therefore write how you would write normal text

        BrooklynCruiser 1 Reply Last reply Reply Quote -1
        • BrooklynCruiser
          BrooklynCruiser @James77 last edited by

          I am confused - I thought what you see when you hover is the Link Title - at least that's how my site has been functioning.

          Does alt tag on images not have any SEO significance?

          James77 RyanKent BrooklynCruiser Alex-Harford 4 Replies Last reply Reply Quote 0
          • James77
            James77 @BrooklynCruiser last edited by

            It will probably show the link title if the image is wrapped in a link tag and you have no alt tag. Alt tags do have SEO significance - and they do show when you hover on an image. Use normal text

            1 Reply Last reply Reply Quote 0
            • RyanKent
              RyanKent @BrooklynCruiser last edited by

              Ryan, it depends on your site design but you are correct.

              Link Titles will appear when you hover your mouse over the link.

              Alt tags are designed to display a text description for those who cannot see the image, such as visually impaired readers or crawlers. You can simply type as you would normally with spaces.

              Alt tags do have a SEO significance, as do the image's file name. Both can be used to associate keywords or phrases with your web page, as well as the image search vertical.

              1 Reply Last reply Reply Quote 0
              • BrooklynCruiser
                BrooklynCruiser @BrooklynCruiser last edited by

                Thanks Ryan- so as with filenames, is it advantageous to us:

                City-Bikes

                or

                City Bikes

                with filenames, I am told preference is for city-bikes.jpg rather than "city bikes.jpg"

                1 Reply Last reply Reply Quote 0
                • Alex-Harford
                  Alex-Harford @BrooklynCruiser last edited by

                  Yes, use hyphens for filenames, and lower case.

                  gravymatt-se 1 Reply Last reply Reply Quote 1
                  • rhutchings
                    rhutchings last edited by

                    1. File names- always use the hyphen.

                    2. Alt Text - use spaces and normal word structure.  Ryan is correct on the technical intent behind the alt tag, but it can also be a good SEO tool, and you should treat those as exact phrase keywords.  So nobody is searching for "city-bikes", they are searching for "city bikes".  The alt tag should be what the user will put into google.

                    1 Reply Last reply Reply Quote 5
                    • gravymatt-se
                      gravymatt-se @Alex-Harford last edited by

                      YES!!!!

                      Always use lowercase for filenames because if you use Upper and Lower (sometimes called camel case) for your internal and menu linking Google will crawl it and index the U&l. Then the fun begins when you have to match your sitemap to that!

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • In our reports we get alt tag errors for our banner images. We are unable to add alt tags to the banner images as they live inside CSS. We can add a title tag on the div title for the banner. Does that help with SEO and accessibility?
                        Shirley.Fenlason
                        Shirley.Fenlason
                        0
                        3
                        37

                      • SEO Dilution: Key Words in Sub Directories v Using a Hyphen in a Single Directory
                        chewythedog
                        chewythedog
                        0
                        5
                        222

                      • Can you use multiple rel alternate tags for different device subdomains?
                        KristinaKledzik
                        KristinaKledzik
                        0
                        5
                        186

                      • Will Google View Using Google Translate As Duplicate?
                        vmialik
                        vmialik
                        0
                        5
                        1.5k

                      • ALT Tag Labels that Use Near Duplicate Text-SEO No, No???
                        Everett
                        Everett
                        1
                        7
                        7.0k

                      • Novice Question - Can Browsers realistically distinguish words within concatenated strings e.g. text55fun or should one use text-55-fun? What about foreign languages especially more obscure ones like Finnish which Google Translate often miss-translates?
                        ny60
                        ny60
                        0
                        5
                        168

                      • How are PDF image alt tags and "subject" field in document properties used for search
                        0
                        1
                        331

                      • Multiple Google+ Local (Google Place) under one email address
                        MiriamEllis
                        MiriamEllis
                        0
                        4
                        585

                      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