On a couple of my sites, I have a bunch of links with images as a background. Is it semantically incorrect / bad SEO to just list a bunch of anchor tags without putting them inside of an unordered list?
If I skip the ul>li it saves me a bunch of markup and in some cases allows me to vertically center nested images via display:inline-block which saves me having to use javascript.
Here’s a couple of examples of what I’m talking about:
1. On the
Sound Rezn site at the bottom where it says "Got A Question", the buttons underneath the "Got a Question" area are simply anchor tags displayed as block elements with nested h2 and p tags (visible text is actually embedded in the image, I just added h2 an p text for SEO).
2. Here’s a similar situation on our
Ratio Christi site. In this case, in the "Ratio Christi Chapters" section, by using only anchor tags I was able to use display:inline-block in combination with vertical-align to center the images vertically in the links. When I initially had it setup with ul>li I had to use javascript to center the images vertically.
What do you guys think? Should all groups of links be placed in ul>li, or is it ok to just group them together outside of a list structure?
Also, does nesting p’s and h2’s in an anchor/link make sense semantically? Is it good for SEO?
-matt