-5

I am looking for how to remove the underline from this bit of HTML

I tried this but have no idea where to place it in this line. (I am not a developer)

<a href="%%unsubscribe%%"><span style="color:#15BECE;">Unsubscribe</span></a> from email communications<br>

2 Answers2

0

You can use CSS to do this.

In the <head> tag of your .htm(or .html) file, add the following code:

<style>
    a {
        text-decoration: none;
    } 
<style>

For adding further styles, you can use styling on the tag:

<style>
    a:link {
        /*a normal <a> tag*/
        text-decoration: none;
        color: value;
    } 

    a:hover {
        text-decoration: underline;
        color: /*Your desired color when cursor is on the link*/;
    } 

    a:visited {
        text-decoration: none;
        color: /*Your desired color when link is clicked and visited*/;
    } 

    a:active {
        text-decoration: underline;
        color: /*Your desired color when link is clicked*/;
    } 
<style>
piet.t
  • 11,718
  • 21
  • 43
  • 52
Gourav
  • 2,746
  • 5
  • 28
  • 45
0

Thanks, everyone!! This is the bit that fixed my problem. I know this was very novice and appreciate your help!

<a style="text-decoration:none"><span style="color:#15BECE">Unsubscribe</span></a> from email communications</p>