Footer menu - does it have to be a list?
#1
Posted 08 September 2010 - 08:32 PM
The menu in the footer of a website - does it have to be a list, can it be within paragraph tabs or does it really not matter? I recall reading something about it being relevant for SEO but don't remember.
Thanks
#2
Posted 08 September 2010 - 08:41 PM
If it's a list of links, then go with a list. If it's just a paragraph of text, or a disclaimer, then go with the paragraph tag.
Whatever suits the content best.
#3
Posted 08 September 2010 - 09:39 PM
<p><a href="">home</a> | <a href="">about us</a> | <a href......</p>
I think it was a shortcut when first starting out to get those '|' inbetween the items. Should I be using a proper unordered list or is this method ok?
#4
Posted 08 September 2010 - 09:53 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<style>
ul#footermenu {list-style-type: none; padding: 0; margin 0;}
ul#footermenu li {display: inline; padding: 0;}
ul#footermenu li a {margin: 3px 5px;}
</style>
<ul id="footermenu">
<li><a href="#">Item 1</a></li>
<li>|</li>
<li><a href="#">Item 2</a></li>
<li>|</li>
<li><a href="#">Item 3</a></li>
<li>|</li>
<li><a href="#">Item 4</a></li>
</ul>
</body>
</html>
#5
Posted 08 September 2010 - 10:09 PM
<ul class="bottomlinky">
<li><a href="#">Link title</a></li>
<li><a href="#">Link title</a></li>
<li><a href="#">Link title</a></li>
</ul>
ul.bottomlinky { list-style: none; padding; 0; margin: 0; }
ul.bottomlinky li { display: inline; padding: 0 10px; border-right: 1px solid #000; }
ul.bottomlinky li:last-child { border-right: 0; }The last style :last-child simply removes the border from the last <li> element.
#6
Posted 09 September 2010 - 07:26 AM
So - I'm guessing it IS relevant? Menus should be in a list?
#7
Posted 09 September 2010 - 08:45 AM
...But nobody have the right to force you to use <li> instead of <div>, <p> or <td>
#8
Posted 09 September 2010 - 11:48 AM
Another approach could be like this
<ul class="bottomlinky">
<li><a href="#">Link title</a></li>
<li><a href="#">Link title</a></li>
<li><a href="#">Link title</a></li>
</ul>
ul.bottomlinky { list-style: none; padding: 0; margin: 0; }
ul.bottomlinky li { display: inline; padding: 0 0px; }
ul.bottomlinky li:before{content: ' > '}
ul.bottomlinky li:first-child:before{content:''}The benefit of this method, is you're not limited to using a 'pipe'. You can put any symbol between the links. A good example would be using '>' for breadcrumb navigation.
The downside to this method, is you're restricted on the padding between the seperators. You can faux it by adding spaces into the content attribute, but i personally think it's a little iffy.
ul.bottomlinky li:after{content:' | '}Edit: IE8 doesn't seem to support :last-child, however it does support first-child: i've updated the css to take this into account.
Update: Tested and working in IE8+, FF2+, Chrome, Safari 3+, Opera 9+
IE7 doesn't work (no :after or :before support), but degrades gracefully.
http://msdn.microsof...024(VS.85).aspx
#9
Posted 09 September 2010 - 01:29 PM
#10
Posted 09 September 2010 - 02:54 PM
#11
Posted 09 September 2010 - 03:27 PM
The purpose of these link is for human usability and to provide a good internal linking structure to all pages. Whether that's in a paragraph or a list is not relevant.
#12
Posted 09 September 2010 - 03:59 PM
#13
Posted 10 September 2010 - 02:36 PM
BlueDreamer, on 08 September 2010 - 10:09 PM, said:
<ul class="bottomlinky">
<li><a href="#">Link title</a></li>
<li><a href="#">Link title</a></li>
<li><a href="#">Link title</a></li>
</ul>
ul.bottomlinky { list-style: none; padding; 0; margin: 0; }
ul.bottomlinky li { display: inline; padding: 0 10px; border-right: 1px solid #000; }
ul.bottomlinky li:last-child { border-right: 0; }The last style :last-child simply removes the border from the last <li> element.
I think the last-child chooser is not supported by IE browser.
and also, I think just use the codes below should be ok for the footer.
<p><a href="#">link_1</a> | <a href="#">link_2</a> | <a href="#">link_3</a></p>
Help





















