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
-
Do I use H1 tag for logo or page content?
Should the h1 tag be used for the main page content or the logo? I understand the original method was too H1 the logo with the main search term, does this still hold true or should it be content focused?
Intermediate & Advanced SEO | | seoman100 -
On Page Content. has a H2 Tag but should I also use H3 tags for the sub headings within this body of content
Hi Mozzers, My on page content comes under my H2 tag. I have a few subheadings within my content to help break it up etc and currently this is just underlined (not bold or anything) and I am wondering from an SEO perspective, should I be making these sub headings H3 tags. Otherwise , I just have 500-750 words of content under an H2 tag which is what I am currently doing on my landing pages. thanks pete
Intermediate & Advanced SEO | | PeteC120 -
Are links that are disavowed with Google Webmaster Tools removed from the Google Webmaster Profile for the domain?
Hi, Two part question - First, are links that you disavow using google webmaster tools ever removed from the webmaster tools account profile ? Second, when you upload a file to disavow links they ask if you'd like to replace the previously uploaded file. Does that mean if you don't replace the file with a new file that contains the previously uploaded urls those urls are no longer considered disavowed? So, should we download the previous disavow file first then append the new disavow urls to the file before uploading or should we just upload a new file that contains only the new disavow urls? Thanks
Intermediate & Advanced SEO | | bgs0 -
We are ignored by Google - what should we do?
Hi, We believe that our website - https://en.greatfire.org - is being all but ignored by Google Search. The following two examples illustrate our case. 1. Searching for “China listening in on Skype - Microsoft assumes you approve”. This is the title of a blog post that we wrote which received some 50,000 visits. On Yahoo and Bing search, we rank first for this search. On Google, however, we rank 7th. Each of the six pages ranking higher than us are quoting and linking to our story. 2. Searching for “Online Censorship In China”. This is the title of our front page. Yahoo and Bing both rank us third for this search. On Google, however, we are not even among the first 300 results. Two of the pages among the first 10 results link to us. Our website has an average of around 1000 visits per day. We are quoted in and linked from virtually all Western mainstream media (see https://en.greatfire.org/press). Yet to this day we are receiving almost no traffic from Google Search. Our mission is to bring transparency to online censorship in China. If people could find us in Google, it would greatly help to spread awareness of the extent of Internet restrictions here. If you could indicate to us what the cause of our poor rankings could be, we would be very grateful. Thank you for your time and consideration.
Intermediate & Advanced SEO | | GreatFire.org0 -
What Sources to use to compile an as comprehensive list of pages indexed in Google?
As part of a Panda recovery initiative we are trying to get an as comprehensive list of currently URLs indexed by Google as possible. Using the site:domain.com operator Google displays that approximately 21k pages are indexed. Scraping the results however ends after the listing of 240 links. Are there any other sources we could be using to make the list more comprehensive? To be clear, we are not looking for external crawlers like the SEOmoz crawl tool but sources that would be confidently allow us to determine a list of URLs currently hold in the Google index. Thank you /Thomas
Intermediate & Advanced SEO | | sp800 -
Clickable links in Google SERP
Hi, I came across clickable links appearing below the meta description in Google SERP. The links are not necessarily the top pages for that particular domain and sometimes tend to reflect the newly added stock. Is there a way to determine what factors account for this? Thanks, mryxN.png
Intermediate & Advanced SEO | | RaksG0 -
De-indexed by Google! ?
So it looks as though the content from myprgenie.com is no longer being indexed. Anyone know what happened and what they can do to fix it fast?
Intermediate & Advanced SEO | | siteoptimized0 -
Would you use images inside H1 tags?
Hi everyone I know what you are thinking but I am being serious. Would you use images inside H1 tags? Personally I don't see the benefit having an image included within the H1 tags but when looking at the Apple website today they actually did this. On http://www.apple.com/iphone/features/#performance they have two H1 tags within the same page. One for an image on top and one for text midway on the page. **The image tag is ** Picking up where amazing left off. **The text tag is ** **Siri. The intelligent assistant that helps you get things done. All you have to do is ask.** Having two H1 tags in on the same page does not make sense at all and is against SEO best practices but including an image in the H1 tags ? Does anyone know any benefits of doing this? Thanks in advance for all your help.
Intermediate & Advanced SEO | | DRTBA0