logo logo

Flikr Badge and XHTML

No matter what I tried, I kept coming up with errors on the Flickr Badge. Here is the final code that I used that is XHTML compliant.

  • I added another <td>around the javascriptas well as moved the class styling to the style.css
  • I changed all of the & to &amp;
<!-- Start of Flickr Badge -->

<table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0">
<tr>
<td><a href="http://www.flickr.com" id="flickr_www">www.<strong style="color:#3993ff">flick<span style="color:#ff1c92">r</span></strong>.com</a>

<table cellpadding="0" cellspacing="10" border="0" id="flickr_badge_wrapper">
<tr><td>
<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=6&amp;amp;amp;display=random&amp;amp;amp;size=s&amp;amp;amp;layout=h&amp;amp;amp;source=user&amp;amp;amp;user=60547841%40N00"></script></td></tr>

</table>

</td>
</tr>
</table>
<!-- End of Flickr Badge -->
bottom

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Please understand with hundreds of SPAM comments, it takes a while to sort through to approve the good comments. Sometimes, by accident, some good comments accidentally get marked as spam. Please let us know if your comment did not get posted. Also, if your comment has a link to it or anything else in it that would make it seem like spam, it will be deleted. So please post a real comment and not one that is only made to link to a site only. Otherwise, it could get deleted.

bottom bottom bottom