homepage Welcome to WebmasterWorld Guest from 54.196.201.253
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Does Google penalise lists in nav menus?
Gemini23




msg:3899349
 7:44 am on Apr 24, 2009 (gmt 0)

Has anyone experience of this? I am currently ranking fairly well with some reasonable search terms. I have sought advice on CSS and other xhtml issues and some 'experts' have advised that I should change my two side-navigation bars from DIVS with <br />:
<div id="left_col">
<br />
<a href="xyz.widgets.com/">Home</a><br />
<a href="xyz.widgets.com/green.html">Green Widgets</a><br />
ditto
ditto

to...
<div id="left_col">
<u>
<li><a href=".widgets.com/">Home</a></li></u>
<li><a href="xyz.widgets.com/green.html">RedWidgets</a></li>
ditto ditto

Not sure if I have copied the coding exactly... but hopefully you get the idea. Essentially to change the current so that they are in a 'list' format. There are 90+ links. Bottom line is that I have pages that are ranking quite well and I don't want to upset the apple cart!

 

tedster




msg:3899393
 9:18 am on Apr 24, 2009 (gmt 0)

Using a list for menu links is semantically correct - it's really the "proper" way to mark-up a menu, since it is a list of similar items. But using that choice, or using divs or even table cells should have no effect on your ranking.

mrMister




msg:3899417
 10:12 am on Apr 24, 2009 (gmt 0)

Yes, I agree with tedster that is the correct way to mark up a menu.

Personally, I'd get rid of the div because it's not needed, try this instead...


<ul id="left_col">
<li><a href="/">Home</a></li></u>
<li><a href="/green.html">Green Widgets</a></li>
</ul>

Gemini23




msg:3899418
 10:20 am on Apr 24, 2009 (gmt 0)

Thanks very much for this, where the <ul> opens the 'list' does where should the closing </ul> be? Is it necessary to open and close for each item on the list or can it be opened at the start and closed at the end?

I notice in the example from mrMister that there is only 1 open <ul> but 2 closing </ul> is that correct?

[edited by: Gemini23 at 10:43 am (utc) on April 24, 2009]

HelenDev




msg:3899438
 10:38 am on Apr 24, 2009 (gmt 0)

I think that is a typo from copying and pasting. <u> means underline and is not generally used any more.

<ul> means a list and there should be an opening <ul> before all of your <li>List Item</li> items, and only one closing </ul> which should go after the end of all the list items.

eltercerhombre




msg:3899595
 1:35 pm on Apr 24, 2009 (gmt 0)

About closing items: it depends on what flavour of HTML you use.

Per example, in HTML 4.01 Transitional you do not need to close the <li> (some others elements are also allowed to not be closed).

I'm a fan of validating the HTML, but I still use this option on some sites (remove the </li>, per example) to make the page weight less (I'm a fan of speed and yes, I also remove extra carriage returns, extra black spaces...)

HelenDev




msg:3899606
 1:38 pm on Apr 24, 2009 (gmt 0)

in HTML 4.01 Transitional you do not need to close the <li>

You may be right but it would make me feel ill ;)

Gemini23




msg:3899860
 6:11 pm on Apr 24, 2009 (gmt 0)

mrMister, can I ask - you say 'get rid' of the Div Id's and replace them with 'ul? simply rename them in the DWT that I use?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved