Using ID Attributes on Anchor Tags
When you insert anchor tags (i.e., bookmarks) in your project, the name attribute is used in those locations.
There is an option in the Advanced tab of the Target Editor for HTML5 to use IDs on anchor tags such as these. This option copies existing anchor name attributes to ID attributes.
You might decide to use this option since the name attribute is somewhat outdated. Also, ID can be styled, whereas name cannot.
How to Use ID Attributes on Anchor Tags
-
Open an HTML5 target.
-
On the Advanced tab of the Target Editor, select Use ID attributes on anchor tags.
-
Click
to save your work.
Example In a topic you've added bookmarks before an H2 and an H3 heading.
If you don't use the ID option in the Target Editor, the anchor tag will look like this in the output, with the name attribute only.
However, if you do use this option, the anchor tag will look like this in the output. In other words, you still have the name attribute, but you also get the ID.
Note If any IDs already exist in a topic, they remain unchanged when you use this option.