Creating Links in Your Blog Entries

This bulletin is less necessary now that I've installed the urlfilter module, but I'll just cover that as another way to add hyperlinks.

Thanks to urlfilter, you can simply paste a hyperlink into your document and the site will make it a clickable link simply enter the destination and it would become a link:

http://thegreenbag.com

You can still make this a link manually if you choose. To make links, use the HTML a element. (a stands for anchor.) The most common attribute used in an anchor is href, which is used to define the link destination. Another common attribute is title, but this is not required. In most browsers, the title will appear as a tooltip when the user hovers their mouse over the link.

In its simplest form, you can post a link like this:

<a href="http://thegreenbag.com">http://thegreenbag.com</a>

The cool thing about this is that you can place more descriptive text inside the anchor element, or not display the whole link. For example:

<a href="http://thegreenbag.com">The Green Bag Website</a>

and

<a href="http://thegreenbag.com">thegreenbag.com</a>

both work the same, but appear quite differently in the final document.

You can learn more about creating links and using HTML elements in the HTML Guides at htmldog.com.

Here is the code for the preceeding links:

<a href="http://www.htmldog.com/guides/htmlbeginner/links/" title="HTML Links">creating links</a>

<a href="http://www.htmldog.com/guides/htmlbeginner/tags/" title="HTML Tags, Attributes and Elements">using HTML elements</a>

<a href="http://www.htmldog.com/">htmldog.com</a>

Note: If you do not want automatic linking with urlfilter, you can select the "Filtered HTML no URL" format type that I've created for all site authors.