Knowledge Base/Email Features: Frequently Asked Questions/Inserting Links and Attaching Documents

Styling links

Matt Ahern
posted this on December 12, 2011 12:35

The HTML code for setting hyperlinks shown here has the minimal requirements for setting a link, that is, where the link takes you or the HREF, or hyperlink reference.

<A HREF="http://www.where_the_link_takes_you.com/">My stuff that is linked</A>

Will appear as,

My stuff that is linked

You can make links appear a certain color, with or without the underline, make it bold all through styles.

Adding the STYLE attribute provides a means to style the link text.

<A HREF="http://www.where_the_link_takes_you.com/" STYLE="color: green;">My stuff that is linked</A>

Will appears as,

My stuff that is linked

If I don't want an underline to appear on my links, I can set the text-decoration style attribute,

<A HREF="http://www.where_the_link_takes_you.com/" STYLE="color: green; text-decoration: none;">My stuff that is linked</A>

Will appears as (hover mouse to see underline on link above and no underline on the link below),

My stuff that is linked