View Full Version : Div tags in links
pavlick
11-21-2007, 09:23 AM
Please, help me to figure out: is it OK to put DIV tag into link like this:
<a href="http:/some_url" title="test">
<div class="homepage_block_title homepage_block2_title">
<h1>Click here</h1>
</div>
</a>
Will it influence the search spider? will the link be indexed?
Thanks.
No problem. However, you could also try:
<a href="http:/some_url" title="test" class="homepage_block_title homepage_block2_title">
<h1>Click here</h1>
</a>
Personally I'd go for:
<h1><a href="http:/some_url" title="test" class="homepage_block_title homepage_block2_title">
Click here
</a></h1>
catanich
12-12-2007, 12:12 PM
Please, help me to figure out: is it OK to put DIV tag into link like this:
<a href="http:/some_url" title="test">
<div class="homepage_block_title homepage_block2_title">
<h1>Click here</h1>
</div>
</a>
Will it influence the search spider? will the link be indexed?
Thanks.
First, I would use <span> and yes it will be indexed ok. But also think of the extra code you are applying. What you gain is less important than increasing the "Text to Code" ratio.
Also, keep the CSS within the H1 tag. The class= is not helpful or harmful.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.