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?
-
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
-
Translating meta tags using WPML and AIO SEO
Having a heck of a time finding info on this one... We're working on a multilingual website which uses WPML. I've used the All in One SEO plugin to customize meta data (title, description, etc). These strings do not appear in the list of translations in WPML. Does anyone have any experience with this setup? How do you enable WPML to translate meta data set via the AIO plugin? Thanks!
Intermediate & Advanced SEO | | jonmc0 -
Are rel=author and rel=publisher meta tags currently in use?
Hello, Do these meta tags have any current usage? <meta name="author" content="Author Name"><meta name="publisher" content="Publisher Name"> I have also seen this usage linking to a companies Google+ Page:Thank you
Intermediate & Advanced SEO | | srbello0 -
Does google ignore ? in url?
Hi Guys, Have a site which ends ?v=6cc98ba2045f for all its URLs. Example: https://domain.com/products/cashmere/robes/?v=6cc98ba2045f Just wondering does Google ignore what is after the ?. Also any ideas what that is? Cheers.
Intermediate & Advanced SEO | | CarolynSC0 -
How to setup multiple pages in Google Search?
How to setup multiple pages in Google Search? I have seen sites that are arranged in google like : Website in Google
Intermediate & Advanced SEO | | Hall.Michael
About us. Contact us
Services. Etc.. Kindly review screenshot. Is this can achieved by Yoast Plugin? X9vMMTw.png0 -
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 | | ColeLusby0 -
<aside>Tag Use</aside>
Hi Guys, Just after some clarification - I have recently been told that by placing content in <aside></aside> tags spiders will ignore the content. Is this the case? I always thought that content placed in these tags was to identify related content. To put the query into some context, we have the same content on multiple pages on a site, which is relevant to the main body copy - but could throw up duplicate content issues... Thanks in advance.
Intermediate & Advanced SEO | | SEOBirmingham811 -
Does Google hate wordpress?
I have my categories pages set to noindex, follow. I deactivated the author and date based archives, and all the /page/2 /page/3 are noindex. Is this the right approach? I had thought about adding some text to the topic of each category page and then changing them to index. I'm using showing recent post excerpts on the homepage. Another other suggestions? I think two of my sites are in panda for no good reason. It seems like non-wordpress blogs in my industry do better than comparable wordpress sites.
Intermediate & Advanced SEO | | KateV0 -
H2 Tag Backlink - is this safe?
I have found that my site is getting a link from a good site, but my concern is that the link is in a H2 tag in the footer of the front page of the site Would getting a link from a site wrapped in H2 tags be safe? The anchor is my sites brand name
Intermediate & Advanced SEO | | JohnPeters0