undefined
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.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • 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.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

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

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.

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

Intermediate & Advanced SEO
11
14
35.2k
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.
  • BrooklynCruiser
    BrooklynCruiser last edited by Jul 29, 2011, 1:29 PM

    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!

    sierragarcia 1 Reply Last reply Nov 6, 2023, 7:22 AM Reply Quote 3
    • sierragarcia
      sierragarcia @BrooklynCruiser last edited by Nov 6, 2023, 7:22 AM

      When using ALT tags for images, it's generally best to use hyphens to separate multiple words in the text. Google and other search engines tend to interpret hyphens as word separators, which can help improve the accessibility and SEO of your web content. While underscores can also be used, hyphens are the more widely accepted and recommended practice. Spaces should be avoided, as they might not work as expected in all situations, as you mentioned, they can be replaced with "%20" in URLs. Using hyphens in ALT tags ensures better readability and consistency.

      1 Reply Last reply Reply Quote 0
      • topic:timeago_earlier,30 days
      • educationedge012
        educationedge012 last edited by Oct 7, 2023, 9:51 AM

        Google prefers hyphens (-) as word separators in ALT tags when using multiple words. Using hyphens helps improve the readability and search engine optimization of the ALT text for images. For example, if you have an image related to project management professionals, it's better to use "project-management-professionals" in the ALT tag rather than spaces or underscores. This practice helps search engines understand the content of the image more accurately. (PMP Exam Prep) (Project Management Professional)

        1 Reply Last reply Reply Quote 0
        • Moodesburn1991
          Moodesburn1991 last edited by Oct 5, 2023, 12:50 PM

          When it comes to using multiple words in ALT tags, there isn't a strict preference by Google for specific characters like spaces, hyphens, or underscores. Google's algorithms are designed to understand various formats and interpret them accordingly. However, it is generally recommended to use hyphens or underscores to separate multiple words in ALT tags, as they can improve readability for both search engines and users. Using either hyphens or underscores creates distinct word boundaries and makes it easier for search engines like Google to recognize and index the content accurately. Ultimately, the most important aspect is to provide descriptive and relevant ALT text to enhance accessibility and user experience.

          i am also researching ai at the moment to help me with tech stuff reading this blog

          https://givevaluefirst.com/artificial-intelligence-for-dummies/

          1 Reply Last reply Reply Quote 0
          • Abbasdms
            Abbasdms last edited by Oct 4, 2023, 5:50 AM

            Google prefers hyphens to spaces or underscores in alt tags when using multiple words. This is because hyphens are more descriptive and easier for screen readers to understand.

            For example, the alt text "black cat" is more descriptive and informative than "black_cat" or "black cat".

            1 Reply Last reply Reply Quote 0
            • topic:timeago_earlier,about a month
            • MOODYBUTTAR
              MOODYBUTTAR last edited by Sep 2, 2023, 6:00 AM

              Google recommends using hyphens (-) to separate words in ALT tags when using multiple words. This helps improve the accessibility and SEO of your images by making them more readable and understandable for both search engines and users.

              1 Reply Last reply Reply Quote 0
              • topic:timeago_earlier,5 years
              • gravymatt-se
                gravymatt-se Subscriber @Alex-Harford last edited by Feb 15, 2019, 6:39 PM Feb 15, 2019, 6:39 PM

                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
                • topic:timeago_earlier,8 years
                • rhutchings
                  rhutchings last edited by Jul 29, 2011, 7:00 PM Jul 29, 2011, 7:00 PM

                  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
                  • Alex-Harford
                    Alex-Harford @BrooklynCruiser last edited by Jul 29, 2011, 3:36 PM Jul 29, 2011, 3:36 PM

                    Yes, use hyphens for filenames, and lower case.

                    gravymatt-se 1 Reply Last reply Feb 15, 2019, 6:39 PM Reply Quote 1
                    • BrooklynCruiser
                      BrooklynCruiser @BrooklynCruiser last edited by Jul 29, 2011, 3:02 PM Jul 29, 2011, 3:02 PM

                      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
                      • RyanKent
                        RyanKent @BrooklynCruiser last edited by Jul 29, 2011, 2:26 PM Jul 29, 2011, 2:26 PM

                        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
                        • James77
                          James77 @BrooklynCruiser last edited by Jul 29, 2011, 2:10 PM Jul 29, 2011, 2:10 PM

                          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
                          • BrooklynCruiser
                            BrooklynCruiser @James77 last edited by Jul 29, 2011, 1:47 PM Jul 29, 2011, 1:47 PM

                            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 Jul 29, 2011, 3:36 PM Reply Quote 0
                            • James77
                              James77 last edited by Jul 29, 2011, 1:46 PM Jul 29, 2011, 1:46 PM

                              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 Jul 29, 2011, 1:47 PM Reply Quote -1
                              • 1 / 1
                              1 out of 14
                              • First post
                                1/14
                                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

                              • redgatst

                                Google Ignoring Canonical Tag for Hundreds of Sites

                                Bazaar Voice provides a pretty easy-to-use product review solution for websites (especially sites on Magento): https://www.magentocommerce.com/magento-connect/bazaarvoice-conversations-1.html If your product has over a certain number of reviews/questions, the plugin cuts off the number of reviews/questions that appear on the page. To see the reviews/questions that are cut off, you have to click the plugin's next or back function. The next/back buttons' URLs have a parameter of "bvstate....." I have noticed Google is indexing this "bvstate..." URL for hundreds of sites, even with the proper rel canonical tag in place. Here is an example with Microsoft: http://webcache.googleusercontent.com/search?q=cache:zcxT7MRHHREJ:www.microsoftstore.com/store/msusa/en_US/pdp/Surface-Book/productID.325716000%3Fbvstate%3Dpg:8/ct:r+&cd=2&hl=en&ct=clnk&gl=us My website is seeing hundreds of these "bvstate" urls being indexed even though we have a proper rel canonical tag in place. It seems that Google is ignoring the canonical tag. In Webmaster Console, the main source of my duplicate titles/metas in the HTML improvements section is the "bvstate" URLs. I don't necessarily want to block "bvstate" in the robots.txt as it will prohibit Google from seeing the reviews that were cutoff. Same response for prohibiting Google from crawling "bvstate" in Paramters section of Webmaster Console. Should I just keep my fingers crossed that Google honors the rel canonical tag? Home Depot is another site that has this same issue: http://webcache.googleusercontent.com/search?q=cache:k0MBLFcu2PoJ:www.homedepot.com/p/DUROCK-Next-Gen-1-2-in-x-3-ft-x-5-ft-Cement-Board-172965/202263276%23!bvstate%3Dct:r/pg:2/st:p/id:202263276+&cd=1&hl=en&ct=clnk&gl=us

                                Intermediate & Advanced SEO | Apr 12, 2016, 7:59 AM | redgatst
                                1
                              • lcourse

                                Capitalization of first letter of each word in meta description. Catches more attention, but may this lead to google ignoring the meta description then more frequently?

                                Capitalization of first letter of each word in meta description. Catches more attention, but may this lead to google ignoring the meta description then more frequently? Same for an occasional capitalized FREE in meta description. Anybody had experience with this?

                                Intermediate & Advanced SEO | Apr 6, 2016, 11:13 AM | lcourse
                                1
                              • friendoffood

                                Alt tag for src='blank.gif' on lazy load images

                                I didn't find an answer on a search on this, so maybe someone here has faced this before. I am loading 20 images that are in the viewport and a bit below.  The next 80 images I want to 'lazy-load'.  They therefore are seen by the bot as a blank.gif file.  However, I would like to get some credit for them by giving a description in the alt tag.  Is that a no-no?  If not, do they all have to be the same alt description since the src name is the same?  I don't want to mess things up with Google by being too aggressive, but at the same time those are valid images once they are lazy loaded, so would like to get some credit for them. Thanks!  Ted

                                Intermediate & Advanced SEO | Dec 29, 2014, 2:38 PM | friendoffood
                                0
                              • ColeLusby

                                Sites in multiple countries using same content question

                                Hey Moz, I am looking to target international audiences. But I may have duplicate content. For example, I have article 123 on each domain listed below. Will each content rank separately (in US and UK and Canada) because of the domain? The idea is to rank well in several different countries. But should I never have an article duplicated? Should we start from ground up creating articles per country? Some articles may apply to both! I guess this whole duplicate content thing is quite confusing to me. I understand that I can submit to GWT and do geographic location and add rel=alternate tag but will that allow all of them to rank separately? www.example.com www.example.co.uk www.example.ca Please help and thanks so much! Cole

                                Intermediate & Advanced SEO | Sep 11, 2014, 5:51 PM | ColeLusby
                                0
                              • Zanox

                                If a website Uses <select>to dropdown some choices, will Google see every option as Content Or Hyperlink?</select>

                                If a website Uses <select>  to dropdown some choices, will Google see every option as Content Or Hyperlink?</select>

                                Intermediate & Advanced SEO | Mar 10, 2014, 12:43 PM | Zanox
                                0
                              • BbeS

                                How does the use of Dynamic meta tags effect SEO?

                                I'm evaluating a new client site which was built buy another design firm. My question is they are dynamically creating meta tags and I'm concerned that it is hurting their SEO. When I view the page source this is what I see. <meta name="<a class="attribute-value">keywords</a>" id="<a class="attribute-value">keywordsGoHere</a>" content="" /> <meta name="<a class="attribute-value">description</a>" id="<a class="attribute-value">descriptionGoesHere</a>" content="" /> <title id="<a class="attribute-value">titleGoesHere</a>">title> To me it looks like the tags are not being added to the page, however the title is showing when you view it in a browser and if use a spider view tool, it sees the title. I'm guess it is being called from a DB. So I'm a little concerned though that the search engines are not really seeing the title and description. I'm not worried about the keywords tag. Can anyone shed some light on how this might work? Why it might not being showing the text for the description in the page code and if that will hurt SEO? Thanks for the help!

                                Intermediate & Advanced SEO | Sep 19, 2013, 12:06 PM | BbeS
                                0
                              • Towelsrus

                                Meta Keywords: Should we use them or not?

                                I am working through our site and see that meta keywords are being used heavily and unnecessarily. Each of our info pages will have 2 or 3 keyword phrases built into them. Should we just duplicate the keyword phrases into the meta keyword field, should put in additional keywords beyond or not use it at all? Thoughts and opinions appreciated

                                Intermediate & Advanced SEO | Aug 14, 2012, 11:51 AM | Towelsrus
                                1
                              • danielparry

                                Multiple sites in the same niche

                                Hi All A question regarding multiple sites in the same niche... If I have say 10 sites all targetting the same niche yet all on different C-class IPs with different hosts, registrars, whois data and ages can I use the same template, or will Google discern a pattern? Basically I have developed a WordPress template which I want to use on the sites albeit with different logos / brand colours. NB/ All of the 10 sites will have unique, original content and they will NOT be interlinked

                                Intermediate & Advanced SEO | Feb 21, 2012, 7:21 AM | danielparry
                                1

                              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
                              • 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 - 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.