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.
External vs inline for CSS menu
-
Which is better for search engines: external or inline menus? And which language: CSS, Javascript, or both?
-
Thanks, Steve. That makes sense.
-
Even though inline uses less code than usual, I'd still say always go for an external file so there is less code to crawl though for your content. The cleaner the code, the better. Inline is still more code than just a linked external stylesheet.
*Edit: Oh and CSS every time over JavaScript
-
Thanks for the quick reply. I guess I should have specified an external CSS file that contains the menu coding, vs. inline CSS coding. From an SEO/crawl bot perspective, should the CSS menu coding be in an external file or inline?
-
What exactly is an 'external' or 'internal' menu? Every menu that is on your website is internal by definition that it is 'on your website'?
Menus should be fully accessible with Javascript turned off. With that in mind you could add Javascript to make the menu function better for users that have Javascript enabled.
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 keywords within a dropdown menu add any SEO value?
I haven't seen this written about in some time. Has anyone had any experience dabbling in this?
On-Page Optimization | | gregvellante0 -
Best structure for a news website including main menu nav
Just looking for thoughts and opinions on the best way to set up the main nav on a news website that covers a specific professional services sector. There are news items, archived news, blog, events, but also main menu links to the numerous news categories that go to a page listing the news articles under that category (as created in Wordpress when publishing the article). I'm thinking that having these off the main nav is diluting the juice to the more important pages including the events and the news page? Just thinking about how to rearrange and consolidate. Any thoughts on how people would structure something like this?
On-Page Optimization | | sam_legmark0 -
Phone number formatting - Periods vs Dashes
Are there any best practices on phone number formatting regarding using periods XXX.XXX.XXXX vs dashes XXX-XXX-XXXX? What about using parentheses on the area code (XXX)XXX-XXX? This is regarding a phone number on a contact apge...
On-Page Optimization | | WorkhorseMKT0 -
Duplicate anchor text vs poor relevance in internal links
We're writing a number of blog posts, all based around a particular head-term (call it "women's widgets"). Each post will be centered around a different long-tail keyword (e.g. "women's brandA widgets", "women's brandB widgets", "women's type1 widgets", etc.). We want to link from the blog posts back to the main "women's widgets" category-level page on our site. Should we: a) Use the words "women's widgets" in each blog post and link that to the "women's widgets" page? This would be the most relevant, but it also seems like using the same anchor text on all of the posts, and linking to the main page, is not good since Google doesn't like seeing the same exact anchor text all the time, right? b) Link the long-tail keyword ("women's brandA widgets") to the main "women's widgets" page? That would solve the anchor text duplication issue, but then the anchor text doesn't seem relevant to the page being linked to (it might never mention "brandA" on that main page at all), and I think it would also hurt the blog post's chances of ranking for the long-tail keyword since we're basically saying that there's a more relevant page for that keyword somewhere else (i.e. you shouldn't link out from a page using the phrase you're trying to optimize that page for). c) Link a nearby word/phrase instead? For example, we could say "Trust Companyname.com for your women's widget needs", and link "Companyname.com" to the "women's widget" page. By proximity to the keyword phrase, that may help a bit, but again the relevancy of the anchor text to the page being linked to is fairly low. I'd hate to have a bunch of "click here", "read this" or "company name" anchor texts being used, just in the name of not overusing the head-term in the anchor text. Are we just missing something, or misunderstanding Google's preferences? What do you do when you don't want to overuse a keyword in anchor text, but you still want to link to a main category-level page using the head-term in order to tell Google that that is the most relevant, best page for that keyword? Is anchor text duplication more of a problem for external backlinks, and less of an issue for internal interlinking? Do you have a different suggestion, other than what I outlined above? Thanks for the help!
On-Page Optimization | | BandLeader
John0 -
Help Please! - Anchor Text in the Menu
Hi everyone, I am a SEOMOZ newbie and I have been learning about SEO for a while now whilst working on my site - lockcity.co.uk - I already understood the importance of anchor text but was amazed to learn how google only count the anchor text used in the first link (http://www.seomoz.org/learn-seo/anchor-text). My questions are - does this rule still apply? and if so do the menus really count as the first link? If I went on this approach, this would make my menus too long for e.g. on my 'Auto Locksmith' page, my targetted keywords are 'Auto Locksmith' but also the town keywords need to be included. I really thought I had this covered on the home page by making sure the anchor text and alt text were keyword relevant to the link, but looks like Ive been missing out on an opportunity. Our business is slightly complicated in that the 25 mile radius we cover includes 4 different regions - therefore I feel like I always have to get these keywords in as well to make sure we get traffic from our area. Thanks for any advice you can give!
On-Page Optimization | | LockCity0 -
Combining CSS
One recommendation from a page speed analysis of my site was to combine CSS (external style sheets) but after reading more on the topic others say that this is not always best. Any thoughts on either approach?
On-Page Optimization | | casper4340 -
"And" vs "&"
I blog for hotels and I am wondering whether it is best to have on a wordpress tagline the name of the hotel such as Holiday Inn and Suites vs Holiday Inn & Suites. In Google AdWords, the "and" keyword always beats out the "&" word in exact search. The "&" just always looks cleaner. Also, when I refer to the hotel within a blog post, should I use the "and" or "&" in the name? Please help me understand which is best for seo. Thank you!
On-Page Optimization | | lwilkins0