Tip: HTML Code for Links
However, I came across this site (no affiliation) that generates the code with a click. I have the site Bookmarked and on my Browser toolbar so it's really easy for me to access whenever I need to do this little task; which is fairly often as it turns out
Here you go ...
Easy Hyperlinks - Free Links Creator - from Links Maker - Links made simple
It also does BB code too.