Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Is it good to have HTML tags between anchor tags? The code used is: <a href="%viewurl%?download=%title%"><div class="m"> <table><tr><td width="104px"><img class="thumb"

@Nimeshi995

Posted in: #Html #Hyperlink #Xhtml

The code used is:

<a href="%viewurl%?download=%title%"><div class="m">
<table><tr><td width="104px"><img class="thumb" src="%thumburl%" height="100px" width="100px" alt="%title%" /></td>
<td width="*">%title%<br/><font color="#000">Size: %filesize%<br/>Duration: %duration%<br/>Downloads: %downtotal%</font></td></tr></table>
</div></a>


Is it Ok to have HTML tags between <a href=""></a> as the anchor texts includes HTML codes would is harm SEO of the page?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

It's completely OK to have HTML tags inside anchor tags when defining a clickable image in your webpage. The HTML code will be similar to the following:

<a href="http://example.com/path/to/link"><img src="someimage.jpg"></a>


My suggestion is to use only HTML tags that define output text or help define output text such as the IMG tag, and if you want to go old-school, you can even embed text in the FONT tag or even bold text. For example:

<a href="http://example.com/path/to/link"><b>Some text</b></a>

<a href="http://example.com/path/to/link"><font color="red"><b>Bolded red text</b></font></a>


But if you're aiming for SEO, the only tag I'd recommend inside anchor is the image tag (as shown in my first example) because the other two examples I showed are meant for an older version of HTML.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme