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
-
Does blogging with a wysiwyg negatively affect SEO (vs. hand coding)?
Many bloggers use a wysiwyg editor to write posts. Are there any drawbacks to wysiwyg vs plain text? When I write blogs I prefer to hand code my text to be sure everything is optimized. My feeling is that wysiwyg leads to code bloat and generally fewer optimization opportunities. I have no real evidence. Is there any reason not to use the wysiwyg editor?
On-Page Optimization | | Jason-Rogers0 -
301 Redirect to external site
Hi guys, We have a client who is getting their website redesigned through us. They are discontinuing couple of their services which will not get featured in the new site. They are fairly well ranked for these services and my client wishes to 301 redirect these pages to an external site owned by his friend so that they benefit out of the ranking. The question is: Will my client's website's general ranking get affected due to 301 redirecting to an external site? The external site is not spammy or red-flagged by Google (at the moment, at least). Thanks in advance!
On-Page Optimization | | RameshNair
Ramesh Nair0 -
Listing all services on one page vs separate pages per service
My company offers several generalized categories with more specific services underneath each category. Currently the way it's structured is if you click "Voice" you get a full description of each voice service we offer. I have a feeling this is shooting us in the foot. Would it be better to have a general overview of the services we offer on the "Voice" page that then links to the specified service? The blurb about the service on the overview page would be unique, not taken from the actual specific service's page.
On-Page Optimization | | AMATechTel0 -
Is a Mega Menu with over 300 links in it hurting my rankings?
I got hit pretty badly by Panda 4.0 (1/3 of my traffic lost), and I'm fairly certain it was because Google had potentially indexed over 20 million pages from a site filtering piece of software and got done for duplicate content. I have since fixed that using URL Parameters and that 20 million is down to 2.7 million now and I have submitted a clean site map, so now I wait. I have just done a site relaunch and am trying to determine if there are any other issues. I run an online store, and I have a mega menu with well over 300 links in it - makes the user experience really quick and easy to jump exactly where you want - and then I have about 30 links in the footer. I know there's a 'no more than 100 links on a page' guideline for Moz, but does anyone know if Google is smart enough to see the same header / footer navigation structure on every page of a site and know it's navigation and not water down the rest of the links, or do I need to re-think and simplify my navigation? It's one of those things that's there for a user experience and now I'm worried that I'm being penalised. The site is www dot shopnaturally dot com dot au
On-Page Optimization | | sparrowdog0 -
Internal Linking - in content vs navigation menu
Would like to get some thoughts on whether navigation menus or in-content links are best for internal linking, from an SEO standpoint. A few thoughts to get started with: For sites with a lot of content, you can have a navigation menu linking to your higher-level pages, then in-content links to deeper pages on your site. For smaller sites, this is not an option, as the navigation menu will probably link to all your important pages. You could add in-content links, but Google only counts the first link on the page, so the in-content links would be ignored if you'd already linked yp the page in your top nav menu. I can think of several possible reasons navigation menu links could be less desirable than in content links from a Google perspective. (They are sitewide boilerplate content without context.) If you setup your navigation structure based on what is best for the user, small sites don't have much wiggle room to optimize internal link structure, as all their money pages will be linked to from the top nav menu. Do you think Google prefers in content links to navigation menu links? If so, how do you get around the fact that for many sites, all their money pages are being linked to from their main navigation menu?
On-Page Optimization | | AdamThompson0 -
CSS family names and whitespace
A CSS validation notes the following: Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. Not sure what this means or how to fix. Help. thanks
On-Page Optimization | | casper4340 -
.us VS .com
In general from what I have experienced a location specific extension such as .co.uk geo-targeted to the same location gives the best results when ranking BUT when I look at results from the US, page after page shows results of .com, surely if my above statement is true then a .us domain extension should rank better then a .com.
On-Page Optimization | | activitysuper0 -
"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