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
-
Eliminate render-blocking CSS in above the fold content with shopify
Hello, It seems that my shopify website needs to eliminate render-blocking CSS in above the fold content to get better mobile speed and I don't see or find anything about how this could be done. I have succeeded with a wordpress site but the way things are restricted with shopify, I have not been able to do the same. The other thing would be to leverage browser caching which I have no clue how it can be done with shopify either. Thanks!
On-Page Optimization | | Mabo320 -
Multiple menu items pointing to same page
I have an automotive dealer as a client. The primary nav has a finance menu item, which (of course) points to the finance related pages. He just requested that I add a finance link item, as child menu items, under the new and used car nav items. Now, this is wrong for a host of reasons, what is the best way to communicate to this to him? I mean, I see this as a usability issue, it's wrong thematically, we would end up having 3 links pointing to the same page. Would this classify as dupe content?
On-Page Optimization | | AfroSEO0 -
Google vs. Bing
We are having some really good results with our SEO strategies for local search and long tail searches for our clients on Google; however, Bing is a completely different story in a couple of cases. What is Bing looking for that Google is not? We have even noticed that something may rank well in Bing then not show up at all in Google? Any help would be greatly appreciated.
On-Page Optimization | | Strategexe0 -
Keyword vs Brand Domain Name
Hi guys, I'm about to launch a new site for a friend who is an accountant in a specialist field. He's already bought 2 domains: **www.[keyword]-accountants.net ** **www.[brand]accountants.com ** We have made the decision to use the brand domain to host the site but what can we do with the keyword domain as exact match domains still seem to be ranking well in the serps? e.g. build keyword links to the keyword domain (heavily seo'd content) and build brand links to the brand domain (conversion-optimised content) then after while 301 the keyword domain? Any new suggestions will be gratefully received!
On-Page Optimization | | Tman30 -
Correct use of Canonical link vs 301 redirect
Hi All, Seeking yet more advice. SEOMOZ tools have told me I have duplicate content on one of my sites and I am keen to clean this up. I am not to familiar with the following so thought I would ask. The duplicate content is shown on : www.mysite.com www.mysite.com/index.html Obviously I only see index.html when I check the code so what is the best method of resolving the duplicate content, Canonical or 301? Can you give me an example 🙂 Thanks all
On-Page Optimization | | wedmonds0 -
SEO Value of Within-Page Links vs. Separate Pages
Title says it all. Assuming that you're talking about similar content (let's say, widgets), which is better: using within-page links for variations or using separate pages? I.e., do we have a widget page and then do in-page links to describe green, blue, and red widgets, or separate pages for each type of widget? In-page pro: more content on a single page, thus more keywords, key phrases, and general appearance of real content. In-page con: Jakob Neilsen says they're confusing. Also, for SEO, you only get one page title, rather than a separate page title for each. My personal bias is for in-page, since I hate creating dozens of short pages for what could be on one page, but my suspicion is that separate pages are better for SEO.
On-Page Optimization | | maxkennerly0 -
Microsites vs landing pages
Hi all! I'm trying to decide the best way forward with regards to a large site I'm currently in the process of redesigning/rebuilding. Basically, the site already has a lot of well ranking seo landing pages targetted to different niches. With this in mind which is the best way forward in your experience? 1. Expand upon the existing niche landing pages adding more content etc and more niches? or 2. Keep the landing pages but set up microsites for each of the niches. (On different domain names or sub domains?) I do not want to polute the existing site as it performs very well and ranks very well for the keywords we target. Are there any benifits to micro sites seo wise? Personally I think it best to expand on the landing pages and keep everything onsite but any adivce you can give me would be greatfully received! Thanks in advance!
On-Page Optimization | | EclipseLegal0 -
CSS background images weight impact
Hi,
On-Page Optimization | | GianniCuccu
do you think that the use of a single 1.8Mb background image sitewide could have a big negative impact and make a website disappear from SERPS? thank you0