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
-
Primary Menu Change
Hi,
On-Page Optimization | | robhough909
I'm wondering will my site be impacted with some of the primary links in our primary menu being moved into a burger Menu? Many Thanks,
Rob0 -
Removing navigation menu items/links on homepage
We are redesigning our website after a long stint with an SEO firm who also handled our design/dev. We want to clean up the links on our homepage but don't want to screw up our IA or SEO. We want to delete some navbar menu items and a whole bunch on random links to our evergreen content below the fold. Would we need to reposition those navbar items/content links to our footer or somewhere else on the homepage to maintain our internal linking structure? It would be great if you could take a look at our site and give us any suggestions or advice on the best way to go about this. Thanks!
On-Page Optimization | | Lorne_Marr1 -
Exact keyword vs connecting words.
Hi guys, I'm wondering if there's a huge difference between exact keywords vs connecting words. i.e. "limo service chicago" vs " limo service in chicago" or something similar. It's tough to have 4+ keywords on a page sound great without using some form of connecting word. Will google still rank the page as high if I use connection words in a few instances of the keyword? Or should I just leave the exact keyword fir all instances. Thanks in advance. Aron
On-Page Optimization | | aronwp0 -
Will google see you bold/emphasis words if done in css?
We do not use header tags in our website. I understand bolding or emphsising words can be equally as effective but if done so in css will the google crawlers and spiders etc be able to put a weighted value on this style of code???
On-Page Optimization | | gsbureau0 -
The best country specific strategy vs. an incumbent exact match domain
We are the single reseller in our country of a niche software, which has a quite general but non-competitive name. The name is already taken buy others in our country TLD, and in 1st rank. They are not related to our industry/business. Let's say our software is named blah, which could be the best country specific strategy we could have? Register a new country TLD domain with the blah in it? Something like blah-country.tdl. bl-ah.tdl? blah-software? Best Regards
On-Page Optimization | | wppseo0 -
Attributes vs. Separate Products?
I carry a line of products that come in 4 sizes and 15 colors. Is it better to have separate products for each combination (Red Large, Blue Small, etc), or a product for each size with attributes for the color, or something else? Also, should I put the brand name in each product name, or only put it in the category that contains that brand? Thanks.
On-Page Optimization | | teatable0 -
PageRank: Links on menu and footer to the same page, does it get counted twice?
Hello all. If I have 10 links on a menu linking to 10 different pages, and 10 links on the footer linking to the same pages, does PageRank get divided by 10 or 20?
On-Page Optimization | | MiamiWebCompany0 -
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