Quote:
Originally Posted by atcspaul
could someone look at this html i am using for ads on my site. it works but not sure if i am doing it right. i would like picture and title to both take to the advertisers site but right now you have to click on either or. here it is.
</script><center>
<a href="http://gtmdecals.com
"target="_blank">
<img src="http://motorbicycling.com/images/misc/decals.gif"></a>
<div class="smallfont" align="center"><a href="http://gtmdecals.com"
target="_blank">Motorized Bicycle Decals!</a>
<br />
<br />
thank you in advance
|
Qua coding there are a lot of errors with that, that won''t pass the xtml validation. For example, you got the ending script tag but no start such tag. The img tag doesn''t have the required alt attribute and it is an empty tag and as such it should be closed. Also the center tag and align center on div are both depricated.
Try to use this code. I cleaned it up and it does what you want. It will take both, the picture and title to go to the advertisers site when clicked upon as a single link, just like you asked. At least that is what I could understand from your request. Please let me know if that was what you wanted.
Anyway, here is the code:
HTML Code:
<div style = "text-align: center">
<a href="http://gtmdecals.com" target="_blank"><img src="http://motorbicycling.com/images/misc/decals.gif" alt = "" /><br />Motorized Bicycle Decals!</a>
</div>
Hope it helps.