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 -
Unused CSS Tool Recomendations
Hey moz, Im currently converting my site to mobile as its an older template based on tables it will make a lot of CSS redundant. I cant delete as i go incase a page uses it im unaware of so need to clean it up when its done. Is there a tool that crawls my entire website and highlights the unused CSS in the files? Ive found a few paying tools that claim to do so but am reluctant to just spend money on something without a recommendation. Cheers!
On-Page Optimization | | ATP1 -
Will a on-page food/drink menu take away from my target keywords?
I am trying to rank for Chicago corporate events, so I am writing new content for a landing page. I have a description of our venue and why one should have a corporate event there, all content that is very rich in corporate event keywords. I then go on to say our drink packages and food packages. Overall, my actual keyword targeted content is 1/5 of the content and the other 4/5 is menu. At first I thought the more content the better, but now that I realize a lot fo the content is just saying different foods and alcohols I'm questioning my strategy. I'm going to do my metas and h1s and stuff with corporate event keywords. But is the menu going to get in the way of ranking for the corporate event keywords? Thanks in advance 🙂
On-Page Optimization | | howlusa0 -
CSS Sprites
I have 6 social icons linked from the header area of my site and I am trying to replace them with a CSS Sprite but cannot get it to work. The current icons are located in a header widget area of my theme through a text box. When I add the new html in the text box and the CSS in the style sheet, the sprite does not show up. Are there any good tutorials on this subject?
On-Page Optimization | | casper4340 -
Exact Match Domain + shorter permalink vs. longer permalink?
So here's the scenario... You own the exact match domain for "Acupuncture Intake Form" and want to create a page that targets the phrase, "Acupuncture Intake Form Template"... In terms of SEO, which of the following permalinks does a better job targeting the term "Acupuncture Intake Form Template" : A) www.acupunctureintakeform.com/template/ B) www.acupunctureintakeform.com/acupuncture-intake-form-template/ From a user-friendliness perspective, I can definitely see why the /template/ is more ideal. It's more memorable, easier to link to, and logical. I'm just wondering whether there is some edge that the /acupuncture-intake-form-template/ has that I'm not aware of, or if there's some gray area. I can also think of scenarios where the longer version might be better. For example, if there were several different kinds of acupuncture intake form templates. If that were the case, then /template/ might be too vague (e.g. is it the normal "acupuncture intake form template" or is it the "acupuncture intake form template with diagram"). So in that respect, the longer one might be less concise in certain situations, but in others provide more clarity. (Note: I'm looking for answers to this situation as it applies to any website. I just chose this extremely small niche exact match domain because it's an example that illustrate my questions). Thanks in advance for any answers, insights, or comments! I'm not sure if there's a specific answer, but I'm sure there are some key points to discuss. Michael
On-Page Optimization | | InRakeLLC0 -
Optimizing for another keyword than the menu name
Hi I would like to hear if someone could help me decide whether or not it is important regarding SEO that the menu name is the same as the keyword we want to rank for. The site is a static site and one of our most important keywords. To give an example. Our menu name is "cars" and we want to rank for "cheap rental cars".
On-Page Optimization | | KennethK0 -
How do I check how a competitor ranks in the UK vs. US?
In building my strategy I want to check how well my competitors rank in country specific searches, for example in Canada or the UK vs. the US. Can someone help me by pointing me in the right direction? Thanks
On-Page Optimization | | jclubb0