I have only just recently learned this myself.
First of all from playmodb, it's really easy, because down at the bottom of the page it gives the code you can copy and it will turn out just like that.
But to do it with any other site, type
[URL=
then paste your link, then
]
followed by the words you want to appear, followed by
[/URL]
and it should show up correctly.