Adding Custom Meta Tags
For online outputs, you can add custom meta tags in the Advanced tab of the Target Editor. These are added between the <head> and </head> tags in your content when you generate output.
There is a default meta tag provided. You can keep this tag, remove it, and/or add other valid tags.
example
Let's say you have embedded HTML5 movies in your topics, and you are generating DotNet Help. However, DotNet Help uses Internet Explorer 7, which does not support HTML5 movies. Therefore, you use the default meta tag in the DotNet Help target to ensure that the latest version of Internet Explorer is used, therefore allowing the movies to play.
example
You might want to enhance search engine optimization for your output, so you add the following tag to the target: <meta name="googlebot"/>
- Open a target.
- On the Advanced tab of the Target Editor, select Add meta tags to content.
-
In the area below, you can add any valid meta tags. You can also keep the default tag. If you want to insert a variable, you can click
. The variable will appear as syntax in the field, but in the output the variable definition will be shown.
default tag for html help
For Microsoft HTML Help targets, the default tag looks like this:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
That's because IE=Edge can cause rendering issues on some systems.
Note: Previously, HTML Help targets used the same default meta tag as DotNet Help. Starting in Version 11, it changed to the meta tag shown above. The reason for this is that HTML Help is an older output type that does not support newer CSS styles. So while using the new meta tag may fix some issues (such as those dealing with lists), it does not help with others (such as rounded borders that are used in slideshows).
You can always change the meta tags back to "IE=7,8,9,10" if you want to revert to the previous behavior. If you have never edited the default meta tags in your HTML Help target, your preference has not been recorded in the target. Therefore, upon opening your project in Version 11 and later, your tags will update to "IE=7" and your may see different behavior in your output. If you have made an edit to the meta tag at some point, those changes are preserved and you will continue to see the same behavior as before.
- Click
to save your work.
