Social media is about sharing and there are different tools out there that help you make your blogposts or website’s pages shareable. But most of them are based on some external script. Moreover someone who has deactivated Java will not be able to use them.
The good news: you don’t have to use scripts to make things shareable. You can also do that with normal html and a few commands inside that. You only have to adapt them to the resp. link you want to share (which you would also have to do if sharing via script).
Make sure you get the quotation marks in the right place and that you add a slash / at the end of a blogpost-url or the .html ending (or.php or .htm or whatever you use) at the end of a website’s url (if you link to an index page, use the complete url like http://www.schwindt-pr.com/index.html).
Ready? Here we go:
————————-
Twitter
Code:
<a href=”http://twitter.com/home?status=http://yourlink” title=”Share this on twitter”>Twitter</a>
Example:
<a href=”http://twitter.com/home?status=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/” title=”Share this on twitter”>Twitter</a>
Try it: share this post on Twitter
As for twitter it might be useful to insert not the extended url but to use a never expiring short url (as with tinyurl) instead. And you can also add some more text. Which would make the code change to:
<a href=”http://twitter.com/home?status=Reading how to code share links by @schwindtpr http://tinyurl.com/ngqtfl” title=”Share this on twitter”>Twitter</a>
Try it: share this post on Twitter
————————-
Facebook
Code:
<a href=”http://www.facebook.com/share.php?u=http://yourlink” title=”Share this on facebook”>Facebook</a>
Example:
<a href=”http://www.facebook.com/share.php?u=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/” title=”Share this on facebook”>Facebook</a>
Try it: share this post on Facebook
————————-
Delicious
Code:
<a href=”http://del.icio.us/post?url=http://yourlink&title=Whatever+this+link+is+about” title=”Share this on delicious”>delicious</a>
Example:
<a href=”http://del.icio.us/post?url=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/&title=How+to+code+share+links” title=”Share this on delicious”>delicious</a>
Try it: share this post on delicious
————————-
Friendfeed
Code:
<a href=”http://friendfeed.com/?url=http://yourlink&title=Whatever this link is about” title=”Share this post on friendfeed”>Friendfeed</a>
Example:
<a href=”http://friendfeed.com/?url=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/&title=How to code share links” title=”Share this post on friendfeed”>Friendfeed</a>
Try it: Share this post on Friendfeed
————————-
Stumbleupon
Code:
<a href=”http://www.stumbleupon.com/submit?url=http://yourlink” title=”Share this on Stumbleupon”>Stumbleupon</a>
Example:
<a href=”http://www.stumbleupon.com/submit?url=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/” title=”Share this on Stumbleupon”>Stumbleupon</a>
Try it: share this post on Stumbleupon
————————-
Digg
Code:
<a href=”http://digg.com/submit?url=http://yourlink&title=How+to+code+share+links” title=”Digg this”>Digg</a>
Example:
<a href=”http://digg.com/submit?url=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/&title=How+to+code+share+links” title=”Digg this”>Digg</a>
Try it: share this post on Digg
————————-
Google
Code:
<a href=”http://www.google.com/bookmarks/mark?op=edit&bkmk=http://yourlink” title=”Share this post on Google”>Google</a>
Example:
<a href=”http://www.google.com/bookmarks/mark?op=edit&bkmk=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/” title=”Share this post on Google”>Google</a>
Try it: share this post on Google
————————-
Myspace
Code:
<a href=”http://www.myspace.com/Modules/PostTo/Pages/?l=3&u=http://your link” title=”Share this post on Myspace”>MySpace</a>
Example:
<a href=”http://www.myspace.com/Modules/PostTo/Pages/?l=3&u=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/” title=”Share this post on Myspace”>MySpace</a>
Try it: Share this post on MySpace
————————-
Reddit
Code:
<a href=”http://reddit.com/submit?url=http://yourlink” title=”Share this post on Reddit”>Reddit</a>
Example:
<a href=”http://reddit.com/submit?url=http://blog.schwindt-pr.com/2009/06/10/how-to-code-share-links/” title=”Share this post on Reddit”>Reddit</a>
Try it: share this post on Reddit
————————-
If you considered this blogpost as helpful I’d be happy if you left me a comment here or use one of the try out links in this blogpost to share it.