There's also a button on the text editor that automatically wraps a link with those tags. Select the url, then click on the button with the painting (on the left, between a button that looks like a blue arrow, and the one with the World and a page), and voilà!