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
-
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 -
Technical isssue if Menu only opens on-click?
We have a SEO related problem with subpages that all have PA of 1. We are suspecting some technical issues behind, therefore our question: Could the menu that only opens on-klick be responsible and would opening on-hover generally be prefereable? Also the subpages are bundled in categories that do not exist: home/kategorienotexistant/subpagewithPA1 Any help is appreciated. thanks in advance
On-Page Optimization | | brainfruit0 -
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 -
Wordpress / Full URL In Menu Box
I came across an article online (not Moz) that says adding the full url in a menu is a Google standard. So when you make a menu link you put "www.example.com/page" instead of "/page". What are your thoughts on this? Any real reason to? Y840pbN lrwZPDj
On-Page Optimization | | InfinityTechnologySolutions0 -
Efficient CSS Selectors
How much practical impact do inefficient CSS selectors have on page speed?
On-Page Optimization | | casper4340 -
Blog on Subdomain vs. Subdirectory - Best Practices
Hi, I have recently been told that it no longer impacts authority or rankings if a blog is set up on a subdomain (blog.domain.com) rather than a subdirectory (/blog). However, I am reluctant to do so because I remember learning how blog subdomains did not adhere to SEO best practices. Would anyone be able to shed some light on the latest SEO best practices regarding this topic? Many thanks, Erin
On-Page Optimization | | HiddenPeak0 -
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 -
Are Content in Inline Javascript and Collapsible Considered Cloaking to Google?
Hi, I would like to save space in my website and do not want my other products to be pushed down below the first fold. In order to do that, I have decided to add content inside inline javascript or using collapsible. For collapsible, I may be using "show/hide" button or "read more" button to show the whole content. So does content in Javascript and collapsible considered hiding from Google? If it is, then I have to think of other options. Thanks.
On-Page Optimization | | globalsources.com0