Hi kevinf,
You need to set the attribute runat server to the anchor link. Then you can access in code behind and set its InnerHtml.
HTML
<header class="site-navbar js-sticky-header site-navbar-target" role="banner" style="background-color: Transparent !important;">
<div class="container-fluid">
<div class="row align-items-center position-relative" style="background-color: Transparent !important;">
<div class="row-cols-12">
<nav class="site-navigation text-right ml-auto kf" role="navigation" style="background-color: Transparent;">
<ul class="site-menu main-menu js-clone-nav ml-auto d-none d-lg-inline-flex">
<li class="has-children">
<a id="FontChange" runat="server" href="#about-section" class="nav-link fs mediaresize">
<em class="icon-import_contacts fs" style="margin-right: 5px;"></em>Import</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<asp:Button Text="Set" runat="server" OnClick="OnSet" />
Code
C#
protected void OnSet(object sender, EventArgs e)
{
string textdesc = "textblack";
FontChange.Attributes.Add("class", textdesc);
FontChange.InnerHtml = "<em class='icon-import_contacts texte fs' style='margin-right: 5px;'></em>Import";
}
VB.Net
Protected Sub OnSet(ByVal sender As Object, ByVal e As EventArgs)
Dim textdesc As String = "textblack"
FontChange.Attributes.Add("class", textdesc)
FontChange.InnerHtml = "<em class='icon-import_contacts texte fs' style='margin-right: 5px;'></em>Import"
End Sub