When using ALT tags - are spaces, hyphens or underscores preferred by Google when using multiple words?
-
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!
-
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.
-
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)
-
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/
-
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".
-
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.
-
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. 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.
-
Yes, use hyphens for filenames, and lower case.
-
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"
-
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.
-
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
-
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?
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Sitelink Search Box mark-up when multiple query strings are used
Hi all, I'm looking to implement sitelink search box mark-up in Google Tag Manager in JSON-LD format. This would be popped into the Custom HTML tag and would look a little something like: The above option is great if you have one query string for your search term, but what if you had a URL that triggered two query strings - for example: https://www.example.com/search?q=searchterm&category=all Would you need to amend the code something like the below: Any help would be much appreciated! Cheers, Sean
Intermediate & Advanced SEO | | seanginnaw0 -
Multiple brands issue
My client has his main brand on the domain name .com and then 3 brands that exist on .com/brandA , com/brandB and .com/brandC We created a lot of content for .com main brand and we noticed that brandB copied some of our content and put it on .com/brandB . How to deal with this? Canonical tags?
Intermediate & Advanced SEO | | aliciaporrata10090 -
"Hot Desk" type office space to establish addresses in multiple locations
Hello Mozzers, I'm noticing increasing numbers of clients' competitors getting physical addresses and phone numbers in multiple locations, no doubt partly for SEO purposes. These are little more than ghost presences (in hot desk style office space) and the phone numbers are simply diverted. Do such physical addresses put them at an SEO advantage (over and above those who don't have hot desk style space and location phone numbers). Or does Google weed out hot desk type office spaces where they can? Your thoughts/experience would be very welcome! Thanks in advance, Luke
Intermediate & Advanced SEO | | McTaggart0 -
Acceptable use of availability attribute 'preorder' value in rich snippets schema markup and Google Shopping feed?
Hello all, Could someone please advise on acceptable use of the availability attribute 'preorder' value in rich snippets schema markup for our websites and the Google Shopping feed? Currently all of our products are either 'in stock' or 'out of stock', also mentioned was 'available for order' but I found that in the 2014 Google Shopping update, this value will be merged with 'in stock' here 'We are simplifying the ‘availability’ attribute by merging ‘in stock’ with ‘available for order’ and removing ‘available for order’. The products which we would like to mark as 'preorder' have been in stock and then sold out, however we have a due date for when they will come back into stock, so therefore the customer can preorder the product on our website i.e. pay in advance to secure their purchase and then they are provided with a due date for the products. Is this the correct use of the 'preorder' value, or does the product literally have to never have been released before? The guidance we have is: 'You are taking orders for this product, but it’s not yet been released.' Is this set in stone? Many thanks in advance and kind regards.
Intermediate & Advanced SEO | | jeffwhitfield0 -
Interlinking multiple websites
Most websites (for example) Zalando intern link there other CC tld domains to the root. For example: On http://www.zalando.nl/damesschoenen-pumps/ the links in the footer go to the other CC tld's: http://www.zalando.es , zalando.co.uk etc. Does anyone have experience with the fact if you would interlink to the relevant page on the other CC tld;s.
Intermediate & Advanced SEO | | TjeerdvZ
For example: http://www.zalando.nl/damesschoenen-pumps/ links to http://www.zalando.co.uk/womens-shoes-heels/ in stead of linking to the homepage ?
In theory this would give more relevance intern linking. Looking forward to hear if anyone tried or experienced this and what the results where?0 -
My landing page changed in google's serp. I used to have a product page now I have a pdf?
I have been optimizing this page for a few weeks now and and have seen our page for up from 23rd to 11th on the serp's. I come to work today and not only have I dropped to 15 but I've also had my relevant product page replaced by this page . Not to mention the second page is a pdf! I am not sure what happened here but any advice on how I could fix this would be great. My site is www.mynaturalmarket.com and the keyword I'm working on is Zyflamend.
Intermediate & Advanced SEO | | KenyonManu3-SEOSEM0 -
Do Google use HTTPS as a trust indicator?
Scenario: Two sites, exactly the same with a form to capture customer details on the home page (e.g. name, address). Would Google rank a site that uses HTTPS over a site that uses HTTP? From what I've heard, they would trust the HTTPS site more than HTTP and therefore rank it higher. Forum opinions?
Intermediate & Advanced SEO | | PeterAlexLeigh0 -
Multiple URLs for the same page
I am working with a client and recently discovered that they have several URLs that go to the same page. http://www.maps.com/FunFacts.aspx
Intermediate & Advanced SEO | | WebMarketingandDesign
http://www.maps.com/funfacts.aspx
http://www.maps.com/FunFacts.aspx?nav=FF
http://www.maps.com/FunFacts.aspx?nav=FS
http://www.maps.com/funfacts.aspx?nav=FF
http://www.maps.com/funfacts.aspx?nav=ffhttp://www.maps.com/FunFacts.aspx?nav=MShttp://www.maps.com/funfacts.aspx?nav=
http://www.maps.com/FunFacts.aspx?nav=FF#
http://www.maps.com/FunFacts
http://www.maps.com/funfacts.aspx?.nav=FF I am afraid this is happening all over the site. So, my question is: Is this hurting the SEO and how? If so what is the best way to go about fixing this problem? Thanks for your help!0