I'm using EPiserver to add content to my website and am trying to set up anchor links/bookmarks on the page. Using the "id" attribute like so:
<li><a href="#login">Login</a></li>
<p id="login"><strong>Login</strong></p>
does not create a bookmark I can link to. I also tried placing blank <a>
tags in front of the text with the id="login" inside <a>
. No dice.
Using the "name" attribute is apparently not possible with Episerver; each time I create markup similar to the following:
<li><a href="#login">Login</a></li>
<p name="login"><strong>Login</strong></p>
-OR-
<p><strong><a name="login">Login</a></strong></p>
Episerver just deletes the name attribute after I close its HTML editor. I've done a little research and Epi is supposed to have a tool to create an anchor link, but it's nowhere to be found in my tool menu.
Per w3schools.com, the 'name' attribute in <a>
is no longer supported in HTML 5, and use of 'id' attribute for bookmarks is preferred. I can't use either attributes in Episerver and there's no tool that I can see that creates bookmarks.
So, my question is: is it possible to create anchor links at all in Episerver, and if it is, how does one create them using raw HTML? I want to skip using a tool if possible. Thanks everybody.
If you're missing tools (buttons) in your editor, you probably just need to add them by modifying the property settings for XHTML properties through admin mode. Through there you'll be able to set which buttons should appear in TinyMCE.
What do you mean by "does not create a bookmark I can link to"? Is the markup changed once the page is saved?