Add Me!Close Menu Navigation

I build things, hack code and have been colouring in between the lines since 1982. I work as Head of Social Tech at mycleveragency, an awesome Social Media Agency.

Add Me!Open Categories Menu

Displaying a Twitter Tweet Button with Valid HTML

Here is some code that allows you to have a HTML Valid Twitter tweet button?

Move the code into a document.write JS function and it will all validate.

<script type="text/javascript">
/* <![CDATA[ */

document.write('<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.shanejones.co.uk" data-text="Some message to post" data-count="horizontal" data-via="shanejones">Tweet</a>');

/* ]]> */
</script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
Posted By Shane Jones

Shane Jones has been working in the on-line space since 2005 in various roles. From Web Development to SEO and Social Media; Shane now finds himself back in Web Development as the Head of Social Tech at mycleveragency in Manchester. The views expressed in Shane's posts are his own and are not necessarily the views of his employer.

One Response to “Displaying a Twitter Tweet Button with Valid HTML”

  1. Adam says:

    Thanks for the code am trying to to put it on. Social media edinburgh website is nice too.

Leave a Reply




Post Categories