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.
How many hyphens are allowed in page titles or image names?
-
When I was going through certification, I was told it should be limited to one or two. I was curious if there is a change.
-
Hi KP
There really is no limit but URL's with many hyphens tend to look spammy.
Remember the old days of long partial match URLs? www.cheap-car-insurance-for-u.com? and suchlike? They just look really crappy. If you really must use one in the TLD then limit it to one.
For Pages & Posts, it's quite common to see more use of hyphens. I'm editor at a music blog and it's quite common to see for example:
sitename.com/the-rolling-stones-manchester-live-review It looks natural even though there is a stop word in the URL because 'The' is actually part of the Stones' name
You will get a warning in Moz because of the long URL but it will not stop it ranking well, at all!
For images, it depends on how descriptive you want it to be. If the image was of Mick Jagger in Manchester then the image URL could easily be sitename**/mick-jagger-manchester-old-trafford** and then the Title or Alt text tag would be 'Mick Jagger - Manchester - Old Trafford, so highly descriptive with a couple of hyphens and great for image SEO.
So it's up to you really - the more descriptive the better. Ignore warnings of long URLs unless they are stupidly long and focus on enhancing the ranking of the page rather than worry about minutiae.
Now:
If you are talking about Meta Titles then it's common to use a variety of separators such as a hyphen (-) or a bar (|). In that case, it's fairly simple as you need Primary Keyword - Secondary Keyword - Sitename so they are often limited to just two.
I think the more you use them the less space there is for Keywords and it's important with a limited length (60-70 characters) to get those in as a priority. The hyphen takes up 3 characters so they are largely a waste of space.
I hope that helps
Regards Nigel
-
Hello there,
If you're talking about the name of image files such as jpg and png where hyphens are used as space (just like you did on page url), there's really no limit given by Google, so my advice would be not to over optimize those image files by stuffing your keywords in it (ie, keyword1-keyword2-keyword3-keyword4.jpg), just make it natural (puppy-food.jpg) instead.
As for Page Titles like Gaston suggested to use it as a separator (personally I prefer | or : ), and again there's no actual limit given by Google, but the key here is to make sure these are optimized for your visitor then only Google. Just make sure they're natural then you should be fine.
Hope this helps,
Joseph Yap
-
Hi there!
There is no such restriction on the amount of hyphens. Usually there are one or two, used as separators in titles. Never seen them in image titles.
Hope it helps.
Best luck.
GR.
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
-
Site name in page title - leave it or remove it?
Hi all, Recently came across some authority blog (quicksprout to be precise) which stated that apart from main page, contact page, about us and some other generic pages, site name should be removed as it might produce duplicate content. example "How to blog | Example Site name" This mostly is the issue with tags and categories pages as it shows on Moz issues. Is that really a problem and site name should be taken off them? Thank you.
On-Page Optimization | | Optimal_Strategies1 -
How to generate an automatic title and meta description for lots of pages
Hi, I'm working on a big website that will have new pages every month. I would like to find a plug-in or something free to generate automatic title and meta description for futur new pages. Thanks you for your help!
On-Page Optimization | | Maely0 -
Duplicate 'meta title' issue (AMP & NON-AMP Pages)
how to fix duplicate meta title issue in amp and non-amp pages? example.com
On-Page Optimization | | 21centuryweb
example.com/amp We have set the 'meta title' in desktop version & we don't want to change the title for AMP page as we have more than 10K pages on the website. ----As per SEMRUSH Tool---- ABOUT THIS ISSUE It is a bad idea to duplicate your title tag content in your first-level header. If your page’s <title>and <h1> tags match, the latter may appear over-optimized to search engines. Also, using the same content in titles and headers means a lost opportunity to incorporate other relevant keywords for your page.</p> <p><strong>HOW TO FIX IT</strong></p> <p>Try to create different content for your <title> and <h1> tags.<br /><br />this is what they are recommending, for the above issue we have asked our team to create unique meta and post title for desktop version but what about AMP page?<br /><br />Please help!</p></title>0 -
How to change images of a page without loosing ranking?
Hi, I have two reasons to change some images of a page on a wordpress site: 1.Google speed service advise me to optmize the images size to better spead load times. 2.I want to change images titles (to improve seo optimization for the page keyword), so i need to replace them, since im using wordpress. Now the question is: Can i just change the images without worring about any related seo issues? Or should i follow some best practice to change images in order to not affect the ranking of the page? tx for your support!
On-Page Optimization | | Dreamrealemedia0 -
Page Title & Meta Description Getting Cut Off In The SERPs
Hi Guys, I am trying to figure out why my page titles and meta d tags are getting cut off in Goofle SERPS. My page titles are 70 characters or under (including spaces) and my meta Dd's are 155 characters or under (including spaces) so I cannot work out why They are getting cut off. Is there something I have missed?! Thanks, Meaghan
On-Page Optimization | | StoryScout0 -
Image titles and alt tags for multiple images
I'm hoping some of you may be able to help me understand the best way to optimize my image titles and alt tags for a specific situation. I'm working on an interior design website and they have hundreds of pictures. each of their projects has about 10 pictures. Is it best for me to us the key phrase in each title and tag? or is that to repetitive? here is what I mean: A project called "urban interior design" all images are of urban interior design, just different angles and features, so my initial idea is to just have each image title like this: Title: "urban interior design dinning area" Alt: "urban interior design dinning area view" Title: "urban interior design living room" Alt:"urban interior design living room couch view" Is this the best way or will it actually hurt my ranking with too much exact keyword use? Thanks for your help!
On-Page Optimization | | TBSEO0 -
What should I put in the image ALT and title text for blogger?
Hello, I wanted to know what should I put in the image ALT and title text for blogger. I've read so many damn articles about ALT text and Title text for blogger; nothing explained what I put in it though. What am I supposed to put in it that will help me with my on page optimization? (Stuff like do I use spaces or dashes, do I put my keyword in there, how many characters should I not exceed, do I put one word or two words?) If I have a picture of a backpack, what should the alt text be? What if I have 10 different pictures of backpacks on 1 page? How about if I had a backpack next to a tv in an image? A specific answer or a detailed one is nice!
On-Page Optimization | | 6786486312640 -
Would it be bad to change the canonical URL to the most recent page that has duplicate content, or should we just 301 redirect to the new page?
Is it bad to change the canonical URL in the tag, meaning does it lose it's stats? If we add a new page that may have duplicate content, but we want that page to be indexed over the older pages, should we just change the canonical page or redirect from the original canonical page? Thanks so much! -Amy
On-Page Optimization | | MeghanPrudencio0