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
-
Content hubs vs blog
Hey all! I work for a large healthcare company. We're in the planning stages of redesigning our website, and the question came up of whether we needed to continue with the patient-focused blog at all when we could simply incorporate the blog articles into the service lines they best fit with (i.e. an article about feeding babies solid good would go under the pediatrics section of the website instead of the pediatrics section of the blog).Anybody have an opinion/insight on whether the articles would get better rankings being dispersed to the services sections of the website instead of concentrated on a blog? Or would good internal linking make the whole question moot?Thanks!
On-Page Optimization | | MartyIHC1 -
Optimizing a product category vs. a bespoke content page
Hi there, I work for a furniture retailer in the UK and I have a question about ranking for search phrases. Say I'm looking to rank for the keyword phrases: 'Tempur mattress' and 'Tempur mattress liverpool' and I have a category at: www.mysite.co.uk/tempur/ which list all of our mattresses, would I be better trying to optimize this page for those key phrases or would I be better generating a new page, say, www.mysite.co.uk/tempur-mattress-liverpool.html Thank you for your input.
On-Page Optimization | | Bee1590 -
Unique Pages with Thin Content vs. One Page with Lots of Content
Is there anyone who can give me a definitive answer on which of the following situations is preferable from an SEO standpoint for the services section of a website? 1. Many unique and targeted service pages with the primary keyword in the URL, Title tag and H1 - but with the tradeoff of having thin content on the page (i.e. 100 words of content or less). 2. One large service page listing all services in the content. Primary keyword for URL, title tag and H1 would be something like "(company name) services" and each service would be in the H2 title. In this case, there is lots of content on the page. Yes, the ideal situation would be to beef up content for each unique pages, but we have found that this isn't always an option based on the amount of time a client has dedicated to a project.
On-Page Optimization | | RCDesign741 -
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 -
Subdomain vs subdirectory for store
Hello, The following services site nlpca.com has a store at shop.nlpca.com Would the store be stronger if it was at nlpca.com/store (in a subfolder) and included in the main navigation? The moz bar suggests not but I just want to make sure. Thanks.
On-Page Optimization | | BobGW1 -
Main navigation with pictures & Alt Tags vs Text/ Link based Navigation
Hi, do I loose an opportunity to rank better if I use a navigation with Alt-tagged Pictures in comparison to a Text/ Link based main navigation? Thanks, Sebastian
On-Page Optimization | | Naturalmente0 -
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 -
"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